IPrinter.PageWidth
IPrinter
property PageWidth: Integer;
Type Library
TeeChartx
Description
PageWidth returns the page width of the active printer. Use with the PageHeight property and PrinterPartial . to print a Chart proportionally to the available size of the Printer's page.
Example [Visual Basic]:
Private Sub Command2_Click()
With TChart1.Printer
.Orientation = poLandscape
.BeginDoc
.PrintPartial 0, 0, .PageWidth / 2, .PageHeight
End With
With TChart2.Printer
.PrintPartial .PageWidth / 2, 0, .PageWidth, .PageHeight
.EndDoc
End With
End Sub