473,725 Members | 2,385 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MSWord

I have to write a ASP.NET application that creates MSWord document from a template and populated with data from the webpage.
(Templates can reside on the server or client's hard drive.)

What is the best way to do this?
Is it good idea to have MSWord installed on the server? If it's not a good idea or if MSWord is not installed on the server what are the alternatives? I am using Office 2003.

Thank You

Peter
Jan 13 '06 #1
6 1823
Peter,

I wouldn't install word on the server...

I would create a web service that may be called to get the data from the
server. Then I'd create a windows application (which could use zero touch
deployment from the server to install on the client). That application would
contact the web service and create the document.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Peter" <pc*****@nospam .nospam> wrote in message
news:eh******** ******@TK2MSFTN GP11.phx.gbl...
I have to write a ASP.NET application that creates MSWord document from a
template and populated with data from the webpage.
(Templates can reside on the server or client's hard drive.)

What is the best way to do this?
Is it good idea to have MSWord installed on the server? If it's not a good
idea or if MSWord is not installed on the server what are the alternatives?
I am using Office 2003.

Thank You

Peter
Jan 13 '06 #2

"S. Justin Gengo [MCP]" <justin@[no_spam_please]aboutfortunate. com> wrote in
message news:ue******** ******@TK2MSFTN GP15.phx.gbl...
Peter,

I wouldn't install word on the server...

I would create a web service that may be called to get the data from the
server. Then I'd create a windows application (which could use zero touch
deployment from the server to install on the client). That application
would contact the web service and create the document.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
"Peter" <pc*****@nospam .nospam> wrote in message
news:eh******** ******@TK2MSFTN GP11.phx.gbl...
I have to write a ASP.NET application that creates MSWord document from a
template and populated with data from the webpage.
(Templates can reside on the server or client's hard drive.)

What is the best way to do this?
Is it good idea to have MSWord installed on the server? If it's not a good
idea or if MSWord is not installed on the server what are the
alternatives? I am using Office 2003.

Thank You

Peter


Unfortunatly this application has to be a Web application.
Jan 13 '06 #3
Do not use MSWord on the server. It's not meant for such purposes.
You could use VSTO 2005.
Or you could use one of these techniques:
http://SteveOrr.net/articles/ExcelExport.aspx
http://SteveOrr.net/articles/ExportPanel.aspx
http://SteveOrr.net/reviews/AsposeWord.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"Peter" <pc*****@nospam .nospam> wrote in message news:eh******** ******@TK2MSFTN GP11.phx.gbl...
I have to write a ASP.NET application that creates MSWord document from a template and populated with data from the webpage.
(Templates can reside on the server or client's hard drive.)

What is the best way to do this?
Is it good idea to have MSWord installed on the server? If it's not a good idea or if MSWord is not installed on the server what are the alternatives? I am using Office 2003.

Thank You

Peter
Jan 13 '06 #4

"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message news:u6******** ******@TK2MSFTN GP10.phx.gbl...
Do not use MSWord on the server. It's not meant for such purposes.
You could use VSTO 2005.
Or you could use one of these techniques:
http://SteveOrr.net/articles/ExcelExport.aspx
http://SteveOrr.net/articles/ExportPanel.aspx
http://SteveOrr.net/reviews/AsposeWord.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"Peter" <pc*****@nospam .nospam> wrote in message news:eh******** ******@TK2MSFTN GP11.phx.gbl...
I have to write a ASP.NET application that creates MSWord document from a template and populated with data from the webpage.
(Templates can reside on the server or client's hard drive.)

What is the best way to do this?
Is it good idea to have MSWord installed on the server? If it's not a good idea or if MSWord is not installed on the server what are the alternatives? I am using Office 2003.

Thank You

Peter

What about using JavaScript, is it posible to open Word Template and populate the Word Document using JavaScript on the client?

Jan 16 '06 #5
this came in the nick of time. I can use this! I may not be fired!

"Peter" <pc*****@nospam .nospam> wrote in message
news:%2******** *******@TK2MSFT NGP15.phx.gbl.. .

"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message
news:u6******** ******@TK2MSFTN GP10.phx.gbl...
Do not use MSWord on the server. It's not meant for such purposes.
You could use VSTO 2005.
Or you could use one of these techniques:
http://SteveOrr.net/articles/ExcelExport.aspx
http://SteveOrr.net/articles/ExportPanel.aspx
http://SteveOrr.net/reviews/AsposeWord.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"Peter" <pc*****@nospam .nospam> wrote in message
news:eh******** ******@TK2MSFTN GP11.phx.gbl...
I have to write a ASP.NET application that creates MSWord document from a
template and populated with data from the webpage.
(Templates can reside on the server or client's hard drive.)

What is the best way to do this?
Is it good idea to have MSWord installed on the server? If it's not a good
idea or if MSWord is not installed on the server what are the alternatives?
I am using Office 2003.

Thank You

Peter

What about using JavaScript, is it posible to open Word Template and
populate the Word Document using JavaScript on the client?
Jan 16 '06 #6

"Tales Mein" <to******@dough pdu.com> wrote in message
news:uK******** ************@co mcast.com...
this came in the nick of time. I can use this! I may not be fired!

"Peter" <pc*****@nospam .nospam> wrote in message
news:%2******** *******@TK2MSFT NGP15.phx.gbl.. .

"Steve C. Orr [MVP, MCSD]" <St***@Orr.ne t> wrote in message
news:u6******** ******@TK2MSFTN GP10.phx.gbl...
Do not use MSWord on the server. It's not meant for such purposes.
You could use VSTO 2005.
Or you could use one of these techniques:
http://SteveOrr.net/articles/ExcelExport.aspx
http://SteveOrr.net/articles/ExportPanel.aspx
http://SteveOrr.net/reviews/AsposeWord.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net

"Peter" <pc*****@nospam .nospam> wrote in message
news:eh******** ******@TK2MSFTN GP11.phx.gbl...
I have to write a ASP.NET application that creates MSWord document from a
template and populated with data from the webpage.
(Templates can reside on the server or client's hard drive.)

What is the best way to do this?
Is it good idea to have MSWord installed on the server? If it's not a good
idea or if MSWord is not installed on the server what are the
alternatives? I am using Office 2003.

Thank You

Peter

What about using JavaScript, is it posible to open Word Template and
populate the Word Document using JavaScript on the client?


I have found a solution to use to use JavaScript on the client side.

private void Page_Load(objec t sender, System.EventArg s e)
{
if(!this.IsPost Back)
{
if (!this.Page.IsC lientScriptBloc kRegistered("Le tterScript"))
{
this.Page.Regis terClientScript Block(
"LetterScri pt",
"<script language=javasc ript>" +
"function CreateLetter(){ " +
"var word = new ActiveXObject(\ "Word.Applicati on\");" +
"word.Visib le = true; " +
"var file = document.getEle mentById('txtTe mplate').value; " +
"var objDoc = word.Documents. Add(file); " +
"objDoc.FormFie lds(\"FirstName \").Result =
document.getEle mentById('txtFi rstName').value ; " +
"objDoc.FormFie lds(\"LastName\ ").Result =
document.getEle mentById('txtLa stName').value; " +
"} " +
"</script>");
}

this.Button1.At tributes.Add("o nClick", "CreateLetter() ");
}
}
Jan 17 '06 #7

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

Similar topics

0
1653
by: Tom Gao | last post by:
hi guys I'm trying to export an aspx page to msword. ############# I know you can do Response.Clear(); Response.ContentType="application/msword";
1
1702
by: Eilsa | last post by:
I want to perform a full-text search for a lot of MSWord documents. So that I have to read the MSWord content and store it to the database. However, I cannot find any solution on it. What should I do if I want to perform a full-text search for these MSWord documents? or any alternative solution for me?? Thanks Best Regards, Eilsa
0
1271
by: staleb | last post by:
Hi I want to open a MSWord document on the clients PC/MSWord, the solution I use now is this: <script language=vbscript runat=Server> <!-- sub OpenDoc(strLocation) set objWord = CreateObject("Word.Application") objWord.Visible = true objWord.Documents.Open strLocation
2
3963
by: Guillaume Durand | last post by:
Hi, I transform XML data in an OutputStream which is open as a word document. All works fine excepted the images defined in the xsl file which are html links (src="images/image1.jpg"). So, when I save the word document in a particular place, the image can't be displayed cause the path is no good anymore. I would like to merge the images in the word document without any external html links. Any idea?
7
2060
by: lkr | last post by:
hi is there is anyway to capture the document events of a MSWord?eg:I have to handle the event awhen WM_KEYUP or anyother events will occur. give me a solution............ thanks in advance lkr
1
2066
by: Jason Huang | last post by:
Hi, I have no problem in creating or modifying a word document in ASP.Net, using C#. However, I don't know how to export database in SQL 2000 or MSAccess to MSWord, given in the ASP.Net and C# environment. I surfed the net and found some articles about interop ASP.Net with the MSWord. But I didn't find resource regarding using the MSWord as the ASP.Net C# report.
7
3685
by: rinku123 | last post by:
suppose in vb form are more then one textbox which is contain data and i want i click command button it save in msword file and it can replace many times suppose just like we make report). i have no experience about it i seen a exe file of vb6. which contain a msword file in this file some label & textbox control is placed i dont know how is it. and when i press commnd button which is in vb6 form. its data display i msword file Label...
0
1038
by: arkark | last post by:
Hi I Need Very Urgent In My Project I access the msword, in Msword header section just i insert the text only. I unable to insert the images.how can i insert the image in msword header using asp dotnet and vb code?
1
2593
by: Matt Curreri | last post by:
I'm trying to automate the creation of a MSWord document with C#; however, when I start creating the MSWord document, I occassionly have a MSWord dialog box displaying a warning of low memory and asking if I would like to continue (Yes, No, Cancel). Is there a way to send the "Enter" or mouse click to this MSWord Dialog Box to invoke the "Yes" option, which will allow the MS Word to continue? I would appreciate any help... Matt
0
9248
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 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...
1
9164
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9092
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6695
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6000
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();...
0
4775
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3212
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
2
2622
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2151
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.