General information
Category:
Pictures and Image processing
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only