Mr Cristobal's approach must be something like this:
- Code: Select all Expand view
cBuf := MEMOREAD( "test.emf"
cBuf := StrTran( cBuf, AnsiToWide( "/99" ), AnsiToWide( "/40" ) )
MEMOWRIT( "test.emf", cBuf )
This could work in some simple cases that Mr Vilian requires, but not in all cases.
Explanation why "not in all cases".
emf file stores a lot more information than text and font info. In some cases alignment, kerning etc of characters may get disturbed.
Example:
This substitution looks quite reasonable:
- Code: Select all Expand view
cBuf := StrTran( cBuf, AnsiToWide( "City" ), AnsiToWide( "CITY" ) )
But let us see the result:
We can use this approach if we keep in mind its limitations.
In any case, this should work well for page numbers as required by Mr Vilian