Ironically we've just written a server side Word PIA VSTO solution that uses
bookmarks to identify where values need to be inserted - Literals, XPath
Lookups, RTF etc. Words implementation of Bookmarks and Ranges is an
absolute nightmare! We're now facing the challenges of word throwing up a
modal dialogue box when being used from a service - (Anybody got an pointers
here would be really good).

The once thing that VSTO does give us is that if the solution turns out to
be a total fiasco we can get the VSTO to run on the client's machine.

One thing that we are also looking at is using Word 2003 on the client
computer (installing the Office 12 compatibility pack) and on the server
having an Office 12 document that we simply insert the correct XML in the
pertinent places rather than modifying the object model.

Regards
Rob.


-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Jonathan Heizer
Sent: Saturday, May 05, 2007 5:29 AM
To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM
Subject: Re: [ADVANCED-DOTNET] Build RTF Document

Yup, that's it.  I was stripping out the rtf header info to try to fix it,
but no luck.  TX's license system is getting to be a bit out of hand.  I am
using this in a dll and the license has to be installed in the exe or it
won't run.  That is a bit of a pain in my situation so I am downloading
Aspose now to try it out.

-Jon

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

Your project is similar to what mine what. I had to
take multiple rtf files
(we talked them into .doc files later on) and create
one big file. So I ran
into the same troubles as you in inserting one rtf
document into the
another. Sometimes it would work, but other times the
font was off. I
figured it had to do with the header in the second rtf
file clashing with
the header of the first document.

That Aspose control did the trick. I just basically
passed it the file path
and name of the rtf (or doc)file and it handled all
the inserting and
saving. I basically put up to 33 documents into one
document using it. And
so far its been flawless.


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

If you were the one that discussed this on here before
I ran into it
earlier.  Aspose is in my list of ones to review.
Right not I am looking at
TX TextControl @ textcontrol.com since it is much
cheaper.  It looks like
one of these two are going to be the way to go unless
someone knows of a
cheaper option.

Thanks for the feedback,

Jon

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

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 DevelopMentorR
http://www.develop.com

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

===================================
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 DevelopMentorR  http://www.develop.com

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

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

View archives and manage your subscription(s) at http://discuss.develop.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