Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / December 2006

Tip: Looking for answers? Try searching our database.

Create Dynamic Word Document in ASP.NET

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jordan.marton@gmail.com - 25 Dec 2006 01:19 GMT
Can someone point me in the direction of a method/solution for
generating word documents on the fly? I have been programming my files
in rtf, but the filesize gets tooo big when I start using images and
tables. I really need to have word format.

I've seen programs like aspose.words. How is that? Does anyone have any
"free" suggestions?
ChrisHarrington - 28 Dec 2006 02:23 GMT
Word 2003 has a native XML format - so you can generate that outside of
Word.

Am curious - how is file size an issue?

Chris

> Can someone point me in the direction of a method/solution for
> generating word documents on the fly? I have been programming my files
[quoted text clipped - 3 lines]
> I've seen programs like aspose.words. How is that? Does anyone have any
> "free" suggestions?
jordan.marton@gmail.com - 28 Dec 2006 23:24 GMT
Because when you add images and the such, the RTF file becomes MASSIVE,
like over 12MB, and when I am dealing with that in string format in
ASP.NET, its too much to handle.

On Dec 27, 9:23 pm, "ChrisHarrington"
<charrington-at-activeinterface.com> wrote:
> Word 2003 has a native XML format - so you can generate that outside of
> Word.
[quoted text clipped - 12 lines]
> > I've seen programs like aspose.words. How is that? Does anyone have any
> > "free" suggestions?
Cindy M. - 29 Dec 2006 09:56 GMT
> Because when you add images and the such, the RTF file becomes MASSIVE,
> like over 12MB, and when I am dealing with that in string format in
> ASP.NET

How about linking the graphics and sending the files separately? That
would be the equivalent of using the IncludePicture field with the \d
switch. That should make the RTF file much compacter.

The problem is you can't get the specs any more to build files in Word's
binary file format. With the release of Office 2007 and the Open Office
file formats (XML) MSFT has withdrawn the binary file format. (And it was
never public, you had to apply for it and sign all kinds of stuff.)

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jun 17 2005)
http://www.word.mvps.org

This reply is posted in the Newsgroup; please post any follow question or
reply in the newsgroup and not by e-mail :-)
ChrisHarrington - 29 Dec 2006 17:47 GMT
Perhaps you can avoid having the whole string in memory. Have your program
serialize to the output stream or to a file stream.

> Because when you add images and the such, the RTF file becomes MASSIVE,
> like over 12MB, and when I am dealing with that in string format in
[quoted text clipped - 19 lines]
>> > I've seen programs like aspose.words. How is that? Does anyone have any
>> > "free" suggestions?

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.