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 3 1759
"Brian Cryer" <br****@127.0.0 .1.activesol.co .ukwrote in message
news:Ok******** ******@TK2MSFTN GP04.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.
"Mark Rae" <ma**@markNOSPA Mrae.comwrote in message
news:O9******** ******@TK2MSFTN GP03.phx.gbl...
"Brian Cryer" <br****@127.0.0 .1.activesol.co .ukwrote in message
news:Ok******** ******@TK2MSFTN GP04.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.
"Brian Cryer" <br****@127.0.0 .1.activesol.co .ukwrote in message
news:Oj******** *****@TK2MSFTNG P06.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...;-) This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;301659
The problem is that the code provided doesn't allow me to add more users to
the mail merge data file. When I try to add an additional user with the
following code, I get this error...
|
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, I'm uing the coe
below, but I'm unsure as to what the Range parameter should be for
oWordDoc.Content.Tables.Add ???
|
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, DefaultTableBehavior:=1,
AutoFitBehavior:=0)
Where objDoc is a Word.Document. However I'm always given the error message
"The range cannot be deleted". But I'm not trying to delete a range. I'm
just trying to insert this Table at the caret position in the...
|
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
|
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 the document that has been
created, the right border does not print, so I've been trying to put in
different values and I get an error on all values I've tried other than 24.
Does anyone have an idea of what I'm doing wrong?
Dim Word As Object...
| |
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 that submission
using this as a model to build from:
http://www.freevbcode.com/ShowCode.Asp?ID=1727
There are no errors generated but there is NO .DOC file created at all
either... Im not sure what Im doing wrong... any clue what I need to...
|
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 assumption here, that anyone looking for this kind of solution would just want a simple example that they can work from and expand upon.
In my case, I just want to output a new Word document. I found that creating a simple wrapper class would make this...
|
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 switch back to "Left" aligned for remaining paragraphs, the text within the Word document remained Centered.
I'm using: VS2008 w/ .NET Framework 3.5, Microsoft.Office.Interop.Word Version 12.0.0.0, and I'm creating the document as a 97-2003 document...
|
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")
windoc = winapp.Documents.Add()
And as far as I have found you have the contents and font part, but how can I add images, tables, headers, footers, ...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |