ExportFootnotes: Boolean;
ExportFootnotes: Boolean;
The ExportFootnotes property determines whether table footnotes are exported.
Available values:
True. Export footnotes.
False. Do not export footnotes.
Executing the example requires a form with the Button1 button, the UiTabSheet component named UiTabSheet1 and any visualizers, for which UiTabSheet1 is set as a data source. In the component table footnotes are created.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Var
Tabsheet: ITabSheet;
Footnotes: ITabFootnotes;
Exporter: ITabSheetExporter;
Begin
Exporter := New TabSheetExporter.Create;
TabSheet := UiTabSheet1.TabSheet;
TabSheet.PageSettings := New TabPageSettings.Create;
Footnotes := TabSheet.Footnotes;
//All footnotes are at the end of obtained document
Footnotes.Location := TabFootnotesLocation.EndOfSheet;
Exporter.TabSheet := TabSheet;
Exporter.ExportFootnotes := True;
Exporter.ExportToFile("C:\Tabsheet.pdf", "PDF");
End Sub Button1OnClick;
On clicking the button, the table will be exported to the specified file. Text of all footnotes will be placed at the last page of the file.
The requirements and result of the Fore.NET Example execution match with those in the Fore Example. Use Fore.NET analogs instead of Fore components.
Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.Tab;
Private Sub button1_Click(sender: System.Object; e: System.EventArgs);
Var
Tabsheet: TabSheet;
Footnotes: ITabFootnotes;
Exporter: ITabSheetExporter = New TabSheetExporterClass();
Begin
TabSheet := uiTabSheetNet1.TabSheetUi.TabSheet;
Tabsheet.PageSettings := New TabPageSettingsClass();
Footnotes := TabSheet.Footnotes;
//All footnotes are at the end of obtained document
Footnotes.Location := TabFootnotesLocation.tflEndOfSheet;
Exporter.TabSheet := TabSheet;
Exporter.ExportFootnotes := True;
Exporter.ExportToFile("C:\Tabsheet.pdf", "PDF");
End Sub;
See also: