GrapeCity.ActiveReports.v8 Assembly > GrapeCity.ActiveReports Namespace > SectionReport Class : PageStart Event |
'Declaration Public Event PageStart As System.EventHandler
public event System.EventHandler PageStart
bool bSwitch; private void SectionReport1_PageStart(object sender, System.EventArgs eArgs) { if (bSwitch == true) { this.PrintWidth = 6.5F; this.Document.Printer.Landscape = false; } }
' boolean to keep track of which orientation to use Dim bSwitch As Boolean Private Sub rptMain_PageStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.PageStart If bSwitch = True Then Me.PrintWidth = 6.5 Me.Document.Printer.Landscape = False End If End Sub