473,403 Members | 2,270 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,403 software developers and data experts.

Using MS Word on server

Hi

We have a requirement for a browser based app which needs to be able to
create/print word files, mail merges e.t.c.

How should we approach this? I an assuming that running word on the server
is not a great idea because of threading issues.

Has anyone else done this kind of thing?

Is serializing access to the word component the only way?

Thanks

CMan
Nov 19 '05 #1
6 1266
> How should we approach this? I an assuming that running word on the
server is not a great idea because of threading issues.


Word wasn't designed for this. Also, I believe you'll have licensing issues,
since you're supposed to have one for each user of your web app. You'll have
to read the fine print on your EULA.

A different approach is to work with WordML which is the XML format of the
document. Send that back to the browser where they can open their copy of
word and print, etc from the browser.

-Brock
DevelopMentor
http://staff.develop.com/ballen

Nov 19 '05 #2
"CMan" <cm**@nospam.nospam> wrote in message
news:u%***************@TK2MSFTNGP10.phx.gbl...
How should we approach this? I an assuming that running word on the server
is not a great idea because of threading issues.


Threading issues would be the least of your worries! Server performance
would very soon grind to a halt with only a relatively small amount of
concurrent users - write yourself a small WinForms app which instantiates
Word, and watch what that does to your PC's memory... Now multiply that by,
say, 25...

Also, you'd probably be in contravention of your Word licensing agreement
unless you could prove that you have as many Word licenses as users of your
site, which I'm assuming you don't.

As has already been suggested, WordML might be the way to go. Failing that,
have a look at this: http://www.aspose.com/Products/Aspose.Word/
Nov 19 '05 #3
Create a word server, so your web app only puts data in a database and a
windows service or exe reads the data and runs word creation jobs one after
the other.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"CMan" <cm**@nospam.nospam> wrote in message
news:u%***************@TK2MSFTNGP10.phx.gbl...
Hi

We have a requirement for a browser based app which needs to be able to
create/print word files, mail merges e.t.c.

How should we approach this? I an assuming that running word on the server
is not a great idea because of threading issues.

Has anyone else done this kind of thing?

Is serializing access to the word component the only way?

Thanks

CMan

Nov 19 '05 #4
Crystal Reports can export to MS Word format. For example, the user can
enter their selection criteria into a form (ex: zip code 50120 and income >
50,000) and Crystal exports the report to a document on the server side,
which can then be opened by the user as a link. I would try to avoid any
implementation that would automate the MS Word application on the client
side or server side.

"CMan" <cm**@nospam.nospam> wrote in message
news:u%***************@TK2MSFTNGP10.phx.gbl...
Hi

We have a requirement for a browser based app which needs to be able to
create/print word files, mail merges e.t.c.

How should we approach this? I an assuming that running word on the server
is not a great idea because of threading issues.

Has anyone else done this kind of thing?

Is serializing access to the word component the only way?

Thanks

CMan

Nov 19 '05 #5
COM automation to Word is not recommended from ASP.NET.

Instead you could use one of these techniques:
http://SteveOrr.net/articles/ExportPanel.aspx
http://SteveOrr.net/Articles/ExcelExport.aspx

If you have more advanced needs, I'd recommend going with a 3rd party
component, such as one of these:
http://www.SteveOrr.net/Reviews/AsposeWord.aspx
http://officewriter.softartisans.com...riter-189.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"CMan" <cm**@nospam.nospam> wrote in message
news:u%***************@TK2MSFTNGP10.phx.gbl...
Hi

We have a requirement for a browser based app which needs to be able to
create/print word files, mail merges e.t.c.

How should we approach this? I an assuming that running word on the server
is not a great idea because of threading issues.

Has anyone else done this kind of thing?

Is serializing access to the word component the only way?

Thanks

CMan

Nov 19 '05 #6
Hello!

I see this is an old article but I met with the same problem on last week.
Can you somebody give me some information How I should to start working with
WordML?

I developed an Appl. in ASP.NET Which make some special Word Documents.
Unfortunatly I realized it's not the good way to solve this problem because
of the problems of Server-side Automation of Word.

Now I gotta make this documents with WordML. Is this possible?
How can I do that?

Thaks for your help!

Gabor

Nov 19 '05 #7

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

Similar topics

3
by: Brian Kwan | last post by:
Project Description: Develop a web application to help manage sale operations. There is a function that to generate a report using data in database, which is a Word document on server and let user...
6
by: Sharper | last post by:
I have just downloaded lebans rtf2 which initially looks very interesting. Having a little trouble though in getting the RTF2 toolbar to appear on my own db although it is on the sample. I have...
7
by: Zeke | last post by:
I'm using the following code to create word document but the problem is if you go to task manager you'll see a WINWORD.EXE process is running but not the application, here is the code: ...
1
by: j | last post by:
Hi, I've been trying to do line/character counts on documents that are being uploaded. As well as the "counting" I also have to remove certain sections from the file. So, firstly I was working...
0
by: Balakrsihna | last post by:
Hi All, Can anyone tell me how to replace an image in MS Word 2003 using c#.net. I am converting an html file to word doc and sending this as attachment using System.Web.Mail; the...
9
by: Nathan Sokalski | last post by:
I am trying to do a database search using LIKE using the following code: Private Sub btnSearch_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSearch.Click If...
1
by: sck10 | last post by:
Hello, I am pulling data from a SQL Server table. One field that is (varchar 4000) is used to show notes. I am using a FormView for showing and editing the data. When the form is in Item...
2
by: ads | last post by:
hi i was given a task to display sql server data in ms word using xml. Im currently doing research to accomplish the task. What i have in mind is to create an xml template (or schema?) to load...
2
by: arivusudar.nc | last post by:
I have to open word document in web page using php coding in linux server.. already i worte in windows supporting php code. but it is not working in my linux server so, i need how to open word...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
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,...
0
jinu1996
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...
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
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.