IPrinter.EndDoc
IPrinter

procedure EndDoc;

Type Library
TeeChartx

Description
Use EndDoc to finish and execute a printer job started with BeginDoc. This may be used with PrintPartial to send a Chart (or multiple Charts) to the printer before ejecting a page. Custom user input may also be included on the same page.

PageWidth and PageHeight may be used to scale the print co-ordinates to the printer 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