Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

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, 11: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, 12:55
JonathanB JonathanB is offline
M$ SLAVE!!!
 
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

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