Hey, I have been trying to build an rtf document on the server side of a .Net remoting application.
Currently the there is a rtf base document that is on the server. Each time a request comes though to generate this a new document it is loaded into a stream object. From there string replacements are done to insert sections of text by replacing key words. This works just fine for plain text. Now we are trying to also insert 2 large blocks of rich text. The first attempt was to take the rich text, remove the items that defined it as a document and insert that formatted text in directly. This works most of the time, but sometimes the fonts of the inserted text gets all jumpled up. I figure this is from removing the font table in the document definition... My next attempt was to load each set of text in richtextboxes and copy and paste the text in code into the final document. This works great in that it carries the formatting over exactly. The only problem is the header and footer information are being lost in the richtextbox. Doh! So, my options that I can think of at this moment. 1) Buy/Find a textbox control that handles header/footer information. so far $1000+ Any free suggestions? 2) Use the copy paste method and try to string add back in the header and footer definitions. Yuck! 3) Word PIA. Can this run in multiple threads? If so it is my worse case because things are really fast right now and Word can be a mess. Yuck! Yuck! Any other ideas are very much welcome! Thanks for any help, Jon =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com