473,399 Members | 3,832 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,399 software developers and data experts.

Creating Word Documents

A project I'm about to start on has a requirement to create word documents
on the fly for download from the website. To date all the code examples I've
found on the net use automation (and by implication require office to be
installed on the server).

Am I right in assuming that using Automation to generate word documents is a
bad idea for a webserver? 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?

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

TIA.
--
Brian Cryer
www.cryer.co.uk/brian

Feb 1 '07 #1
3 1736
"Brian Cryer" <br****@127.0.0.1.activesol.co.ukwrote in message
news:Ok**************@TK2MSFTNGP04.phx.gbl...
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...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/d...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/Aspos...s/Default.aspx This is a
commercial product, but very simple.
Feb 1 '07 #2
"Mark Rae" <ma**@markNOSPAMrae.comwrote in message
news:O9**************@TK2MSFTNGP03.phx.gbl...
"Brian Cryer" <br****@127.0.0.1.activesol.co.ukwrote in message
news:Ok**************@TK2MSFTNGP04.phx.gbl...
>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...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/d...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/Aspos...s/Default.aspx This is a
commercial product, but very simple.
That was a very quick response. I'm impressed.

Thank you.
Feb 1 '07 #3
"Brian Cryer" <br****@127.0.0.1.activesol.co.ukwrote in message
news:Oj*************@TK2MSFTNGP06.phx.gbl...
That was a very quick response. I'm impressed.
LOL! I guess you're new here - this most certainly is not the first time
this question has been asked...;-)
Feb 1 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: campwes | last post by:
Hey, all. I'm trying to develop a C# app that creates Word 2003 mail merge documents with an Oracle 9i database as the datasource. I used the following as an example of how I can start out: ...
3
by: m3ckon | last post by:
Hi there, I can succesfully create a word doc from my asp.net page, but I have 2 issues I need to resolve in order to use it in my app: 1) Creating a table: I seem unable to create a table,...
2
by: elziko | last post by:
I'm trying to create a new table in word from a DataTable (sourceTable): objDoc.tables.Add(Range:=objDoc.Range, NumRows:=sourceTable.Rows.Count, NumColumns:=sourceTable.Columns.Count,...
6
by: Keith Butler | last post by:
H Very new to CHM file. My question is can I create CHM file from a word document (or any other document)? Appreciate links to any good article on creation of CH Thank Keit
0
by: Eagle | last post by:
I am trying to change the linewidth of a page border, and keeping getting an error at the "wdLineWith075pt" For some reason, it only accepts the value of 24 like the left border. Yet when I print...
2
by: tamaker | last post by:
I have a registration form where a user is able to, upon submission of the form, have their submission entered into a simple database... now Im looking to create a word document on the fly from...
0
by: PracticalApps | last post by:
I looked to find a canned solution to create a Word document in my application and just couldn't find anything that just gets to the point. I would think, and I may be making too strong of an...
2
by: uamusa | last post by:
I am Dynamically generating a proposal(report) in MS Word. By default the Paragraph Alignment is "Left". For the First 6 Paragraphs I set the Alignment to "Center", and then when attempting to...
2
micmast
by: micmast | last post by:
Hey everybody, After looking on the internet, I found that a way to create word documents is using the win32com object. The easy part is winapp = win32com.client.Dispatch("Word.Application")...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.