Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting a BMP file for embedding into a RTF file
Message
 
To
01/04/2003 18:30:18
Russell Honnor
Datasure Management Systems Ltd
Auckland, New Zealand
General information
Forum:
Visual FoxPro
Category:
Pictures and Image processing
Miscellaneous
Thread ID:
00772745
Message ID:
00773144
Views:
13
Russell,

the rtf-code that MS-Word creates is indeed bloated. What you need to do is the following:
- read the file into a string
- create an instance of the RichText-control
- put the string into the RichText control
- put the RichText control string into a variable
I´m sure you can put the bmp into the control as well. Although this is not something that I have done (yet).

This action strips all bloat rtf-codes from the original file. The best part is: the content is still the same.

Ron

>Does anyone know of a utility / winapi call etc to convert a BMP file into a format that can be then be embedded into a RTF file ?
>
>By reverse engineering a word document with an embedded BMP file I can figure out what the RTF commands are - but then there is a large blob of (hex?) data - being the embedded BMP file - which appears to be different to the data in the originating BMP file.
>
>i.e. it seems you just cant drop a BMP file as-is into the RTF file. It appears to need to be converted into a different format first (what that format is I am not sure)
>
>PS: I need to do this without making calls to MS word. (or linking to the BMP file - which I have already figured out)
>
>Cheers
>Russ
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform