Hi! I'm not sure which is the best forum to post this kind of question, so if you have any suggestions as to a different forum, do tell
.
I have a table which contains several thousand individual blocks of RTF text (some of which contain graphics, and if you've ever attempted to store a graphic in RTF you'll know that that makes the files HUGE). I need to somehow programatically merge these blocks into a number of RTF files, one file might have 100 or so blocks of text, for instance.
The problem is, you can't just take the raw RTF text (i.e. the underlying text, not the formatted result) and combine multiple blocks in the same file. Right now what I'm doing is using the Microsoft RTF Control to read the text and then copy it into another text box where it's all combined and saved to file. But this method is very slow and seems to be buggy.
Short of doing something like writing the text to a file and automating Microsoft Word to open and merge the data (which would be horrendously slow) are there any other thoughts on how to do this?
Is there any simple way to parse the RTF so that I can combine the data?
Thanks in advance -- Mike
I have a table which contains several thousand individual blocks of RTF text (some of which contain graphics, and if you've ever attempted to store a graphic in RTF you'll know that that makes the files HUGE). I need to somehow programatically merge these blocks into a number of RTF files, one file might have 100 or so blocks of text, for instance.
The problem is, you can't just take the raw RTF text (i.e. the underlying text, not the formatted result) and combine multiple blocks in the same file. Right now what I'm doing is using the Microsoft RTF Control to read the text and then copy it into another text box where it's all combined and saved to file. But this method is very slow and seems to be buggy.
Short of doing something like writing the text to a file and automating Microsoft Word to open and merge the data (which would be horrendously slow) are there any other thoughts on how to do this?
Is there any simple way to parse the RTF so that I can combine the data?
Thanks in advance -- Mike