Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I am using the below method to convert excel to pdf. I am getting the pdf as a output. But when i open the output pdf i am getting the error,
"Acrobat could not open 'report.pdf' because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded). To create an Adobe PDF document, go to the source application. Then print the document to pdf".
Previously in my system i had Adobe 6.0 and all worked perfectly, but now i removed and installed Adobe 7.0 i am getting the above error. Where am i going wrong?
my @thing = $sheet->PrintOut({ Copies => 1, PrintToFile => 'True', ActivePrinter => "Adobe PDF",#version 7 # ActivePrinter => "Acrobat PDFWriter",#version 6 PrToFileName => "C:\\Report.pdf", #Collate => 1, });
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Excel to PDF using Win32::OLE
by JamesNC (Chaplain) on May 03, 2006 at 01:52 UTC | |
by Anonymous Monk on May 03, 2006 at 11:55 UTC | |
by JamesNC (Chaplain) on May 04, 2006 at 10:17 UTC |