THtmlViewer component
Declarations
procedure OpenPrint;
procedure AbortPrint;
procedure ClosePrint;
For most printing situations, these methods would not be used as a simple call to the Print method but be sufficient. However, these methods might prove useful when it is desired to print several odd pages of a document or to even make changes in the document between portions printed.
Once OpenPrint is called, the printer will remain open until ClosePrint (or AbortPrint) is called. While open, the Print method may be called successively to print various portions of the document.
AbortPrint is provided to close the printer and cancel any portions not yet printed.
Viewer.OpenPrint;
Viewer.Print(1, 1);
Viewer.Print(22, 24);
Viewer.ClosePrint;