Setting Print orientation

Hello again friends,
I am having trouble saving the for orientation in my form for printing. I have two different forms in the database. One using Landscape and the other Portrait.
I am using the print to pdf.

printtopdf “Report.pdf”,“orientation”,“landscape”

It seems to work just fine except how do I get it to automatically print. Right now it is saving it as a PDF file and I have to locate it and print it. Any ideas would be appreciated.

printtopdf "","orientation","landscape","printer",""

The empty quotes at the end signify the default printer. You have the option of specifying which printer, if you wish. Read the part under “Printer” in the documentation for this statement.

Thank you Dave. Perfect solution. Works great!!