Converting to own format
Posted: Sun Sep 05, 2010 11:45 am
Hi,
I have an application that uses a TRichEdit to load an rtf (or paste text from Word etc) and convert this to a format another of our applications uses to set letter texts.
The program basically scans each character of the rtf and needs to know for each character what the character is, the font name, size and style, the indentation of the paragraph, and whether there is a bullet style and that's about it.
The problem I have is that a lot of the time the RichEdit component is not displaying the rtf as Word would and therefore my application cannot re-create the document correctly in the other application's format.
I have downloaded the trial version of TRichView and this can display the rtf correctly so providing I can work out how to do the parsing I have authorisation to purchase the product.
For future versions it would be nice if I could handle Unicode and tables but at the moment I am just dealing with fairly straightforward letter texts with multiple fonts, bullets and indentations.
My question therefore is how would I acheive this with TRichView please.
Thanks
Ian
I have an application that uses a TRichEdit to load an rtf (or paste text from Word etc) and convert this to a format another of our applications uses to set letter texts.
The program basically scans each character of the rtf and needs to know for each character what the character is, the font name, size and style, the indentation of the paragraph, and whether there is a bullet style and that's about it.
The problem I have is that a lot of the time the RichEdit component is not displaying the rtf as Word would and therefore my application cannot re-create the document correctly in the other application's format.
I have downloaded the trial version of TRichView and this can display the rtf correctly so providing I can work out how to do the parsing I have authorisation to purchase the product.
For future versions it would be nice if I could handle Unicode and tables but at the moment I am just dealing with fairly straightforward letter texts with multiple fonts, bullets and indentations.
My question therefore is how would I acheive this with TRichView please.
Thanks
Ian