I am using the following code to print a pdf file:
When I try to open the PDF file that was created with this code, I get an error that states:
Adobe Reader could not open Sample1.pdf because it is either not a supported file type or the file has been damaged.
When I manually print the sheet and choose the PDF writer and select a filename, everthing works fine.
Does anyone have some items for me to look at for solving this problem?
Thanks,
David
Code:
ActiveWindow.SelectedSheets.PrintOut ActivePrinter:="_PDF WRITER on Ne00:", PrintToFile:=True, Collate:=True, PrToFileName:="C:\Temp\Sample1.pdf"
When I try to open the PDF file that was created with this code, I get an error that states:
Adobe Reader could not open Sample1.pdf because it is either not a supported file type or the file has been damaged.
When I manually print the sheet and choose the PDF writer and select a filename, everthing works fine.
Does anyone have some items for me to look at for solving this problem?
Thanks,
David