TTMSFNCCustomDataGridPrintIO Class
Base class for the grid print component. Connects a
TTMSFNCCustomDataGrid(or a standaloneTTMSFNCDataGridRenderer) to the printer pipeline and paginates its content.
API unit family: TMSFNCDataGridPrintIO
Inherits from: TTMSFNCCustomPrintIO
Syntax
TTMSFNCCustomDataGridPrintIO = class(TTMSFNCCustomPrintIO)
class PASCALIMPLEMENTATION TTMSFNCCustomDataGridPrintIO : public TTMSFNCCustomPrintIO
Remarks
Printing is started with the inherited TTMSFNCCustomPrintIO.Print method. Without arguments it prints Renderer; when passing export objects explicitly, pass the renderer (for example Grid.Root), not the grid control — any object that is not a TTMSFNCDataGridRenderer raises an exception.
Sequence per print job: OnRowIsPageBreak is raised for every row, then the before-content event fires, the rows are drawn page by page using Options, and the after-content event fires. Header, footer, page-number and margin settings come from the inherited print options.
At design time, a newly dropped component connects itself to the first grid found on the form.