Jon, I did a project that dealt with rtf files almost
a year ago. I never
had so much gray hair as I do now. About 6 months of
working on it a fellow
programming mentioned Aspose.Words (1) and it did took
2 weeks to implement
the way we wanted and get the output we were looking
for. Had I of had this
at the start of the project I would have been done
months sooner. I would
highly suggest something like this. It handles .doc
and .rtf.

Good luck

1. http://www.aspose.com/Products/Aspose.Words/Api/


-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf
Of Jonathan Heizer
Sent: Friday, May 04, 2007 2:18 PM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: [ADVANCED-DOTNET] Build RTF Document

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


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to