ComponentOne Reports for WinForms Designer Edition: ComponentOne Reports for WinForms > Printing and Previewing Task-Based Help > Formatting Tables > Printing in Landscape

Printing in Landscape

C1PrintDocument allows to you to specify different printing options and page settings for your document. The page settings can be specified in the designer or in code.

In the Designer

1.   Select the C1PrintDocument control on your form. Its properties will appear in the right-pane of the Visual Studio interface.

2.   Locate the PageSettings property for the C1PrintDocument.

 

 

3.   Locate the Landscape property and set it to True. Your C1PrintDocument will appear and print in the Landscape orientation.

 

In Code

You can also change your page settings for your C1PrintDocument at run time, by adding the following code to the Form_Load event:

      Visual Basic

Me.C1PrintDocument1.PageLayout.PageSettings.Landscape = True

      C#

this.c1PrintDocument1.PageLayout.PageSettings.Landscape = true;

At Run Time

You can also change the page settings for your C1PrintDocument in the preview at run time using the Page Setup dialog box.

1.   Click the Page Setup button located in the toolbar.

 

The Page Setup dialog box opens.

 

The Page Setup dialog box contains the following fields:

 

Field Name

Description

Paper

Select the size and the source of the paper. The available sizes and sources depend on the selected printer.

Orientation

Choose from Portrait or Landscape page orientation.

Margins

Customize the Left, Right, Top, and Bottom margins of your C1PrintDocument.

 

The Page Setup dialog box has the following Command Buttons:

 

Button Name

Description

OK

Apply the settings to your C1PrintDocument.

Cancel

Cancel the modified Page Settings for your document.

Printer

Modify or view the settings for your printer.

 

2.   Locate the Orientation field and select the Landscape option. Your C1PrintDocument now appears and will print in the Landscape orientation.

 


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.