IPrinter.PrintPartial
IPrinter
procedure PrintPartial(Left, Top, Right, Bottom: Integer);
Type Library
TeeChartx
Description
Use PrintPartial to send a Chart to the printer without ejecting a page. Multiple Charts may then be included on the same page. Use BeginDoc and EndDoc methods to start and end the print jobs.
PageWidth and PageHeight may be used to scale the print co-ordinates to the printer page. To mix TeeChart printer output with other print utput on the same page use the PrintPartialHandle method.
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