Printout3 and Adobe PDF

Hi Guys,

So I am using the printout3 method as such:

swModExt.printout3 Empty 1, True, "Adobe PDF", "C:\something.pdf", True

Couple things to take note of. I am using the Adobe PDF printer and I am passing in the save file name.

Everything was running peachy but then I wanted to control the page size it was going to print to so I used:
pageSetup.printerpagesize = 4

Now when I try to print it creates corrupt PDFs. I got rid of pageSetup and its still an issue.

However if I dont put the file desitination and leave it blank so " ". It prompts to choose a file and creates noncorrupt PDFs.

Why will it not let me pass a file path in the method arguement?

Thanks,

David

SolidworksApi macros