F
ffyring
Hi, I have written a small VBA macro in excel (2002) which print outs a
excel sheet as a pdf file.
It used to work well until an update of acrobat was installed.
Now it stops when I try to print out the ps file with the error
"go to printer properties ... turn OFF the option Do not send fonts to
distiller".
--------------------------------
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True,
PrintToFile:=True, PrToFileName:=ps_filename ''<<<----- This line gives
the error
--------------------------------
Well, I go to the printer settings for the PDF writer, and the checkbox
there is named
"Do not send fonts to Adobe PDF". Similar but not the same.
This is already unchecked, but the macro still doesn't work.
I can print another excelsheet with a nearly identical macro, and that
works fine. I guess
the problem is that the non working macro tries to print out a page
with other fonts or something.
Any idea of how I can get this to work? Is there any easier way to
print a pdf (via vba, and where I
can specify a filename)?
I have acrobat distiller 7.0, and acrobat 7.0 standard.
----------------------------------------------------------------------------------
Application.ActivePrinter = "Adobe PDF on Ne01:"
pdf_filename = "my_pdf_filename.pdf"
ps_filename = "my_ps_filename.pdf"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True,
PrintToFile:=True, PrToFileName:=ps_filename ''<<<----- This line gives
the error
Dim myPDF As PdfDistiller6
Set myPDF = New PdfDistiller6
myPDF.FileToPDF ps_filename, pdf_filename, ""
excel sheet as a pdf file.
It used to work well until an update of acrobat was installed.
Now it stops when I try to print out the ps file with the error
"go to printer properties ... turn OFF the option Do not send fonts to
distiller".
--------------------------------
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True,
PrintToFile:=True, PrToFileName:=ps_filename ''<<<----- This line gives
the error
--------------------------------
Well, I go to the printer settings for the PDF writer, and the checkbox
there is named
"Do not send fonts to Adobe PDF". Similar but not the same.
This is already unchecked, but the macro still doesn't work.
I can print another excelsheet with a nearly identical macro, and that
works fine. I guess
the problem is that the non working macro tries to print out a page
with other fonts or something.
Any idea of how I can get this to work? Is there any easier way to
print a pdf (via vba, and where I
can specify a filename)?
I have acrobat distiller 7.0, and acrobat 7.0 standard.
----------------------------------------------------------------------------------
Application.ActivePrinter = "Adobe PDF on Ne01:"
pdf_filename = "my_pdf_filename.pdf"
ps_filename = "my_ps_filename.pdf"
ActiveWindow.SelectedSheets.PrintOut Copies:=1, Collate:=True,
PrintToFile:=True, PrToFileName:=ps_filename ''<<<----- This line gives
the error
Dim myPDF As PdfDistiller6
Set myPDF = New PdfDistiller6
myPDF.FileToPDF ps_filename, pdf_filename, ""