Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create a MS Word Document on Client with ASP

Status
Not open for further replies.

ABinBoston

Programmer
Nov 6, 2001
22
US
I would like to have an ASP Contact nmanagement app I am working on open MS Word and populate a document with text from the current Contact Record.

For example, have MS Word open, and say Dear: <namevalue>

I have searched the web, but have not come up with any hgood solutions to date.

Thanks! - AB
 
I'm not sure how to do this server-side, but it can be achieved by using client-side script. (Under IE anyway)

Set objWordApplication = CreateObject(&quot;Word.Application&quot;)

You then have the equivalent of the 'Application' object in VBA for MS Word in objWordApplication.

If you've not used VBA before and can't be bothered learning, you can always just record a macro, as they're stored in VBA - it'll give you an overview of how to read/write the document, etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top