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