ComponentOne Preview Classic for WinForms: Preview Classic for WinForms Task-Based Help > Changing the Location of the Block Flow

Changing the Location of the Block Flow

To change the location of the block flow, use the AdvanceBlockFlow method to move down or up from the current position. The AdvanceBlockFlow method will not advance to a different page.

Add the following code to the Form_Load event to move down the page .25 inches from the current position:

      Visual Basic

Me.C1PrintDocument1.AdvanceBlockFlow("0.25in")

      C#

this.c1PrintDocument1.AdvanceBlockFlow("0.25in");

Add the following code to the Form_Load event to move up the page .25 inches from the current position:

      Visual Basic

Me.C1PrintDocument1.AdvanceBlockFlow("-0.25in")

      C#

this.c1PrintDocument1.AdvanceBlockFlow("-0.25in");


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