Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello
I'd like to create PDF documents with VBA. For this I downloaded the PDF995 writer. I created the following macro: Sub Print_PDF() ActiveSheet.PrintOut _ ActivePrinter:="PDF995 on Ne03:", _ PrintToFile:=True, _ PrToFilename:="C:\Temp\Test.pdf" End Sub The pdf file was created but I'm not able to open it with the Adobe Acrobat Reader. The error message 'unknown format' appears. What am I doing wromg? Tom |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Did you successfully create the file by doing it manually?
Could it be read then? -- Regards, Tom Ogilvy "Tom" wrote: Hello I'd like to create PDF documents with VBA. For this I downloaded the PDF995 writer. I created the following macro: Sub Print_PDF() ActiveSheet.PrintOut _ ActivePrinter:="PDF995 on Ne03:", _ PrintToFile:=True, _ PrToFilename:="C:\Temp\Test.pdf" End Sub The pdf file was created but I'm not able to open it with the Adobe Acrobat Reader. The error message 'unknown format' appears. What am I doing wromg? Tom |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
PDF995 prompts for a filename: I do not know of a way to default this.
You need to remove PrintToFile:=True, _ PrToFilename:="C:\Temp\Test.pdf" PDF995 prints postscript to a file and then this file is converted to PDF without user interaction. I think "C:\Temp\Test.pdf" contains the postscript: if you want to be sure, you need a ps viewer: GHOSTVIEW is available on the internet. "Tom" wrote: Hello I'd like to create PDF documents with VBA. For this I downloaded the PDF995 writer. I created the following macro: Sub Print_PDF() ActiveSheet.PrintOut _ ActivePrinter:="PDF995 on Ne03:", _ PrintToFile:=True, _ PrToFilename:="C:\Temp\Test.pdf" End Sub The pdf file was created but I'm not able to open it with the Adobe Acrobat Reader. The error message 'unknown format' appears. What am I doing wromg? Tom |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Yes, I can create it manually.
"Tom Ogilvy" schrieb im Newsbeitrag ... Did you successfully create the file by doing it manually? Could it be read then? -- Regards, Tom Ogilvy "Tom" wrote: Hello I'd like to create PDF documents with VBA. For this I downloaded the PDF995 writer. I created the following macro: Sub Print_PDF() ActiveSheet.PrintOut _ ActivePrinter:="PDF995 on Ne03:", _ PrintToFile:=True, _ PrToFilename:="C:\Temp\Test.pdf" End Sub The pdf file was created but I'm not able to open it with the Adobe Acrobat Reader. The error message 'unknown format' appears. What am I doing wromg? Tom |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
convert excel document to word document (not a picture) | Excel Discussion (Misc queries) | |||
How to create a formatted 'readable' document based on Excel document? | Excel Discussion (Misc queries) | |||
how do i rotate a document or print small document on envelope | New Users to Excel | |||
How do I convert a word document into a Excel document | Excel Discussion (Misc queries) | |||
How to change a excel document into a word document? | Excel Discussion (Misc queries) |