Create Word Documents from IE

I have a series of HTML input forms designed to create a form letter to be opened in MS Word. How is this typically accomplished? I would like to also set the default directory, filename, and document type (.doc).
[221 byte] By [jan3784] at [2008-2-5]
# 1

Hi,

Can you provide more details of from where you are trying to do this. If you need to write to the user's file system then you may need to use an extension such as an ActiveX control.

Thanks
-Dave

DaveMassy at 2007-10-8 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...
# 2

Hello Dave,

I am working from an intranet server to generate a form letters from user input forms. The form letters are to be saved/printed locally on the client's workstation. The client's workstation has Windows XP and Office 2003.

Thank you for your reply.

John

jan3784 at 2007-10-8 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...
# 3

Hi John,

For security reasons direct access to the file system is restricted from the browser without user input. You may wish to explore generating the form as HTML and allowing the user to print and save as an html file directly from the browser.

Thanks
-Dave

DaveMassy at 2007-10-8 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...
# 4

Hello Dave,

Thank you for your reply.

I am exploring methods to allow the customer to open the HTML generated content in MS Word. I currently have the option set up to print the HTML document from IE via Javascript. I also have set up the option to open the document in MS Word since the customer may want to save the letter for later usage. CSS is used for formatting and XML is imbeded to set the display in MS Word to view. However, there are a few issues which are not friendly to the average user. A blank IE window displays when the content is opened in MS Word. I can suggest a filename for the document but cannot set the document type and default file location when the user wants to save the file within MS Word.

John

jan3784 at 2007-10-8 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...
# 5
Hi Dave!

I have a similar problem:

I need to generate a report in ASP.NET (C#) and save this in MS Word 2003. But I could save it on the server and send a link to the user to download the .doc, so access to FS is not a problem actually.

But I'm pretty new to it.
Could you help me on HOW to do this?


Thanks in advance.

Cruentus at 2007-10-8 > top of Msdn Tech,Internet Explorer Development,Internet Explorer Web Development...