Wrox Programmer Forums
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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old May 25th, 2004, 01:47 PM
Authorized User
Join Date: Feb 2004
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

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.

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 06: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 08:46 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.