Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Print to PDF

Hi,

Is it possible to set the printer and the paper size and Page format in the macro.

2 Replies
Not applicable
Author

I did not try it myself, but maybe you can use the following:

Set Application.Printer = Application.Printers("HP LaserJet Series II")
ws.PageSetup.PaperSize = xlPaper11x17

bumin
Partner - Creator II
Partner - Creator II

I tried it  but the macro doesn't accept even the first line

Set Application.Printer = Application.Printers("Bullzip PDF Printer")

ws.PageSetup.PaperSize = xlPaper11x17

is there any syntax error? where  "ws" is defined as a parameter?

any ideas?

thanks

Bumin