In the IDE, select an object you want to print.
Choose File -> Print Preview.
In the Print Preview window, click Page Setup. The Page Setup dialog box opens.
You can also invoke the Page Setup dialog box by choosing File -> Page Setup.
On the Page Setup page specify the following parameters:
Paper size
Source of the paper
Paper orientation
Margin sizes
Click Printer button and specify the printer.
Click Ok.