Re: Creating Word Documents

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



"Brian Cryer" <brianc@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:OkOfr9hRHHA.4448@xxxxxxxxxxxxxxxxxxxxxxx

Am I right in assuming that using Automation to generate word documents is
a bad idea for a webserver?

You are completely correct in that. In fact, it's such a bad idea that
Microsoft won't support any application which does it:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;q257757#kb2

I've always had the impression that with Excel the single threaded nature
of it meant it was unsuitable for all but the lightest use on a webserver
and I'm making the assumption that the same applies to Word. Am I right?

Yes you are. Do a search in the newsgroup for the thread entitled
"Automation of Word from .net 2" - you might find it interesting reading...
:-)

Also, does anyone know of any alternatives for generating a word document?
(Text + Images + ideally some formatting)

There are several, varying in price and difficulty.

1) Use HTML
Create an HTML document and give it a Word extension - Word will open it
just like a native Word document. This is completely free and very simple.

2) Use XML
http://www.microsoft.com/downloads/details.aspx?familyid=fe118952-3547-420a-a412-00a2662442d9&displaylang=en
or the equivalent for Office 2007. Again, this is completely free, but will
involve a fair bit of work, especially if you're not familiar with XML.

3) Use Aspose
http://www.aspose.com/Products/Aspose.Words/Default.aspx This is a
commercial product, but very simple.


.



Relevant Pages

  • Re: Creating Word Documents
    ... Microsoft won't support any application which does it: ... of it meant it was unsuitable for all but the lightest use on a webserver ... Create an HTML document and give it a Word extension - Word will open it ... Use XML ...
    (microsoft.public.dotnet.framework.aspnet)
  • XML webservice creation and consumption
    ... I have a .NET webserver and SQLserver 2000 ... I need to be able to send the xml to the webserver/database (some crunching ... which need to be sent back to the client app. ... Code needed to send the xml to the webserver ...
    (microsoft.public.dotnet.framework.webservices)
  • Code needed to send xml to a webservice
    ... I have a .NET webserver and SQLserver 2000 ... I need to be able to send the xml to the webserver/database (some crunching ... which need to be sent back to the client app. ... Code needed to send the xml to the webserver ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Wie stellt ein Webservice die Daten bereit
    ... Entstehung von XML ... Programm auf einem Webserver, erzeugt auch XML Dokumente, ohne sie als Datei ... Braucht weder Server noch Client Script! ... DHTML ruft einen Webservice auf, ...
    (microsoft.public.de.german.entwickler.dotnet.asp)
  • Citrix MF Server kann nicht gefunden werden Serververöffentlichung
    ... Netz steht der Metaframeserver, der XML Dienst ist auf Port 8081 gedreht. ... Auf dem Webserver läuft auch ein Exchange, ...
    (microsoft.public.de.german.isaserver)