If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Activeprinter bug

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-07-03, 10:16
chris66 chris66 is offline
Registered User
 
Join Date: May 2003
Posts: 1
Activeprinter bug

Hi everybody

I try to print a document with a pdf converter, therefore I try to affect the name of the pdf printer to the activeprinter property, here is a part of my (very basic) code :

<SCRIPT LANGUAGE=VBScript RUNAT=Server>
Set WordApp = CreateObject("word.application")
WordApp.ActivePrinter = "PDFmail"
Set MSDoc = WordApp.Documents.Open(ch_pub_rtf)
.........

but it doesn't work, and when I add the instruction
response.write(WordApp.ActivePrinter) to my code I can see that the activeprinter remains empty...? the work environment is windows 2000 server and winword 2002...

the same code executed on the same machine with vba works !!! but not with vbs...I suspect a microsoft vbscript bug...? Does anyone has an idea or an alternative solution...?

Thanks a lot
Chris
Reply With Quote
  #2 (permalink)  
Old 05-09-03, 11:55
JonathanB JonathanB is offline
Registered User
 
Join Date: Feb 2002
Location: North Wales, UK
Posts: 114
Please post any error messages.
__________________
J^ - web | email
newsASP Developer
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On