how to set document size (11*17) and (8.5*11) to export as PDF with macro ?


;

Hi I would like to set up with a macro my document papersizebefore export it to pdf;
i try to use the function :

PageSetup.PrinterPaperLength
and
PageSetup.PrinterPaperWidth

but i don't know how to use them

can you help me ?

thanks in advance

AlexSolidworksApi macros