catalyst2 community forums  

Go Back   catalyst2 community forums > Support > Scripting Support

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old 08-07-2006, 02:57 PM   #1 (permalink)
Registered User
 
Join Date: Feb 2004
Posts: 5
Opening a .doc Document in ASP

HI

I should like to provide individual itineraries for delegates who come to a meeting that we organise through http://www.ntam.org.uk

I would like to open a word document, insert the individual's details and allow the client to view it.

I seem to be stumbling at the first hurdle! When I use:
---------------------
Dim objWord

' create object
Set objWord = CreateObject("Word.Application")

' open word template
With objWord
.Visible = True
.Documents.Add CurrentProject.Path & "path and filename here.doc"
End With
-------------------
I get the error:

Microsoft VBScript runtime error '800a01ad'

ActiveX component can't create object: 'Word.Application'

I've tried altering the path but it seems to be a problem with creating the object. Any suggestions?

Thanks

Tony

PS I'm hardly ASP literate let alone .NET!!

Last edited by CAT2188; 08-07-2006 at 02:58 PM. Reason: Clarity
CAT2188 is offline   Reply With Quote
Old 08-07-2006, 11:39 PM   #2 (permalink)
Administrator
 
WhiskyFudge's Avatar
 
Join Date: Oct 2003
Posts: 1,484
I am not an ASP expert by far (.net man). But my understanding is that Word.Application would require MS Word to be installed on the host machine. This isn't and never will be the case with Cat2 servers.

From experience editing word documents through a website is not an easy task. I have done it one project, (due to the use of 3rd party components and their bizzar permission requirements, it would not work on Cat2s servers). Point being is that it took me around 3 solid days to do the smallest bit of editing. My advice is find another alternative!

Office 2007 and it's new ZIP compressed XML based document format will make editing documents infinitely better. I also hope (although have not looked into it in the slightest), that Cat2 may be able to install Office Live Services on their servers.

Sorry to be the bearer of bad news!
__________________
Jason Robbins
jason@catalyst2.com
WhiskyFudge is offline   Reply With Quote
Old 09-07-2006, 10:34 AM   #3 (permalink)
Registered User
 
Join Date: Feb 2004
Posts: 5
Thanks

Thanks for your reply

I thought that's what someone might say! I've spent days Googling and there seem to be plenty of open threads that ask similar questions without any useful replies.

Thanks again

Tony
CAT2188 is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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 On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 01:09 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.