Printing
Printing with Preview
RichView documents can be printed – with all images, backgrounds, tables, etc.
A special component ( TRVPrintPreview) displays a preview of printed output on the screen. Users can browse pages, zoom in and zoom out of this preview.
Users can define page breaks at any place in the document.
Printing Inserted Components
RichView tries to print inserted controls itself.
But it is not possible to create a procedure which will print any type of controls. If you are not satisfied with the default printing, you can use OnPrintComponent to print controls yourself (by drawing them in a temporary bitmap).
RichView has special support for printing TChart components. Details are in Resources for RichView.
Page Headers and Footers
You can assign other documents as headers and footers.
The current version of the components does not allow different headers and footers for different pages, or calculated fields in them. If you need to print page numbers, use OnPagePrepaint or OnPagePostpaint events.
Additional information about printing headers and footers
Advanced Possibilities
TRVReportHelper component can draw documents at the specified rectangle of any Canvas, including printer's Canvas.
This component allows you to implement complex page layouts, for example printing documents in several columns.
Demos
Editing and printing:
- Demos\Delphi\Editors\Editor 1\ subdirectory of RichView installation, or
- Demos\CBuilder\Editors\Editor 1\ subdirectory of RichView installation, or
- download the compiled demo.
Printing with simple header (“Page M of N”)
- Demos\Delphi\Assorted\Printing\Printing\ subdirectory of RichView installation, or
- Demos\CBuilder\Assorted\Printing\Printing\ subdirectory of RichView installation.
Loading RTF documents and printing them with header and footer:
- Demos\Delphi\Assorted\Printing\Headers\ subdirectory of RichView installation, or
- Demos\CBuilder\Assorted\Printing\Headers\ subdirectory of RichView installation.
Printing with TRVReportHelper
- Demos\Delphi\Assorted\Printing\ReportHelper\ subdirectory of RichView installation, or
- Demos\CBuilder\Assorted\Printing\ReportHelper\ subdirectory of RichView installation.
High quality printing of documents with TChart:
- Demos\Addins\ChartItem\ subdirectory of RichView installation.
Tips and tricks about printing
WYSIWYG Editing
WYSIWYG editing is not supported in TRichViewEdit. Line wrapping on the screen and on the paper may be different.
WYSIWYG mode is implemented in ScaleRichView (additional components to TRichView).
|