TTMSFNCUIPrint
On top of the TTMSFNCGraphicsPrintIO we have two components that are specially created for a specific TMS FNC Component. These are available for TTMSFNCGrid and TTMSFNCRichEditor.
TTMSFNCGridPrintIO
An example for the TMSFNCGrid was already shown in the TTMSFNCGraphicsPrintIO chapter, but for more complex grids there is the TTMSFNCGridPrintIO.
This component has some additional properties to make the export of the grid even more
customizable for starters with multiple pages, but also the ability to repeat fixed cells, …
Example
uses
…, FMX.TMSFNCGridPrintIO;
procedure Click(Sender: TObject);
begin
TMSFNCGridPrintIO1.Grid := TMSFNCGrid1;
TMSFNCGridPrintIO1.Options.Footer := 'My Footer Text';
TMSFNCGridPrintIO1.Options.PageNumber := pnHeader;
TMSFNCGridPrintIO1.Options.PageNumberFormat := 'Page %d';
TMSFNCGridPrintIO1.Print;
end;

TTMSFNCGraphicsPrintIO
The TTMSFNCRichEditor is one of the components where it is not yet possible to do an export via TTMSFNCGraphicsPrintIO. For this component we have created the specific print IO component. There is still the possibility to set the TTMSFNCPrintIOOptions, but the TTMSFNCRichEditorPrintIOwill automatically calculate for linebreaks and new pages.
Example
uses
…, FMX.TMSFNCRichEditorPrintIO;
procedure Click(Sender: TObject);
begin
TMSFNCRichEditorPrintIO1.RichEditor := TMSFNCRichEditor1;
TMSFNCRichEditorPrintIO1.Options.PageNumber := pnHeader;
TMSFNCRichEditorPrintIO1.Print;
end;
