k***@adobeforums.com
2004-04-08 12:24:11 UTC
Hi,
I am using the Adode PDF Printer for converting the Word doc to PDF.
I am using the code as
Application.PrintOut FileName:="", Range:=wdPrintAllDocument,OutputfileName:="C:\Temp.pdf", Item:= _
wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _
ManualDuplexPrint:=False, Collate:=True, Background:=False, printtofile:= _
True, PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _
PrintZoomPaperHeight:=0
The above code works fine if i remove the outputfilename but then it opens a saveas dialog box.If i give the outputfilename,then it creates the file in the path specified but when i open the pdf file,it gives me error ,cannot open the pdf file....
Any help will be appreciated.
Thanks,
Kamal
I am using the Adode PDF Printer for converting the Word doc to PDF.
I am using the code as
Application.PrintOut FileName:="", Range:=wdPrintAllDocument,OutputfileName:="C:\Temp.pdf", Item:= _
wdPrintDocumentContent, Copies:=1, Pages:="", PageType:=wdPrintAllPages, _
ManualDuplexPrint:=False, Collate:=True, Background:=False, printtofile:= _
True, PrintZoomColumn:=0, PrintZoomRow:=0, PrintZoomPaperWidth:=0, _
PrintZoomPaperHeight:=0
The above code works fine if i remove the outputfilename but then it opens a saveas dialog box.If i give the outputfilename,then it creates the file in the path specified but when i open the pdf file,it gives me error ,cannot open the pdf file....
Any help will be appreciated.
Thanks,
Kamal