Results 1 to 2 of 2
  1. #1
    Join Date
    May 2003
    Posts
    1

    Unanswered: 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

  2. #2
    Join Date
    Feb 2002
    Location
    North Wales, UK
    Posts
    114
    Please post any error messages.
    J^ - web | email
    newsASP Developer

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •