TTMSFNCCustomDataGridPDFIO Class
Base class for the grid PDF export component. Connects a
TTMSFNCCustomDataGrid(or a standaloneTTMSFNCDataGridRenderer) to the PDF library and paginates its content.
API unit family: TMSFNCDataGridPDFIO
Inherits from: TTMSFNCCustomPDFIO
Syntax
TTMSFNCCustomDataGridPDFIO = class(TTMSFNCCustomPDFIO)
class PASCALIMPLEMENTATION TTMSFNCCustomDataGridPDFIO : public TTMSFNCCustomPDFIO
Remarks
Export is started with the inherited TTMSFNCCustomPDFIO.Save overloads (to a file name or a stream). Without explicit export objects the Renderer is exported; when passing export objects, pass renderers (for example Grid.Root), not grid controls — any object that is not a TTMSFNCDataGridRenderer raises an exception. Each export object starts on a new page.
Sequence: OnRowIsPageBreak is raised for every row; then, for every page produced, the header and footer text is requested and drawn and the before-content event fires; the rows are drawn using Options; the after-content event fires when the page is finished.
At design time, a newly dropped component connects itself to the first grid found on the form.