hi bruintje,
Thanks for your help first.
My program is copied from the site you post. I just have pdf writer driver installed on my computer, no acrobat distiller. So i must set the Active Printer to "Acrobat PDFWriter" as the pdf printer driver name. I want to know which attribute or function of the API "Word.Application.8" can set it to silent printing(no any dialog box pop up)
my program is as follows:
Function ConvertFile(strSourceFileN
Dim msWord As Word.Application
Set msWord = GetObject(Class:="Word.App
msWord.Visible = False
msWord.ActivePrinter = "Acrobat PDFWriter"
msWord.Documents.Open strSourceFileName
msWord.ActiveDocument.Save
msWord.ActiveDocument.Prin
msWord.ActiveDocument.Clos
Set msWord = Nothing
ConvertFile = True
Exit Function
wilson
Main Topics
Browse All Topics





by: bruintjePosted on 2002-06-27 at 21:25:28ID: 7115605
Hi wilsontang,
inpage.asp ?webpageid =350
ame As String) As String
lication.8 ")
tOut e False
have you tried something similar as this?
http://www.codecuts.com/ma
they do something like
Function ConvertFile(strSourceFileN
On Error GoTo ErrorHandler
Dim msWord As Word.Application
Set msWord = GetObject(Class:="Word.App
msWord.Visible = True
msWord.ActivePrinter = "Acrobat Distiller"
msWord.Documents.Open strSourceFileName
msWord.ActiveDocument.Prin
msWord.ActiveDocument.Clos
' Should check and quit word when done
Set msWord = Nothing
ConvertFile = True
Exit Function
instead of distiller they use pdfwriter but it is more the way they handle the silent printing
HAGD:O)Bruintje