Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP Basics
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Closed Thread
 
Thread Tools Display Modes
  #1 (permalink)  
Old May 25th, 2004, 01:47 PM
Authorized User
 
Join Date: Feb 2004
Location: Philadelphia, , USA.
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Default Opening a MS Word document from ASP

Hi. I'm wondering how to open up MS word on the client machine & pass variables from the ASPX page over to a template document.

I tried to open Word with:
Dim objWord As Object
Dim strMuniCertLocation As String = "http://localhost/docs/Municipal Certification Letter.doc"
objWord = CreateObject("Word.Application")
objWord.Visible = true
objWord.Documents.Open(strMuniCertLocation)

But I received the error "System.Exception: Cannot create ActiveX component."

Any ideas how I should structure this process? Can I call MS Word on the client side from an ASPX page and pass variables to it?

Can this only be done in VBScript? I ran a test with some VBScript and was able to open MS Word from the page. If so, can I pass variables from the ASPX page to the opened MS Word documents through VBScript?

Thanks. Any advice would be appreciated.


Closed Thread


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reading a MS Word Document using VB.net pauljohns353 VB How-To 0 November 14th, 2006 05:26 AM
Opening word document read only in VB StevenVints VB How-To 1 May 3rd, 2006 09:52 AM
Access 97 and opening a Word document Andrew Antoniak Access VBA 1 June 11th, 2004 12:29 PM
Opening MS-Word M.L.Srinivas Classic ASP Basics 6 November 6th, 2003 07:46 AM



All times are GMT -4. The time now is 09:43 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.