Skip to content

TTMSFNCGanttChartPrintIO

The TTMSFNCGanttChartPrintIO is a component used to facilitate printing of TMS FNC Gantt Chart data. This component offers a range of customizable options, allowing users to selectively print either the task list or the timeline, or both. Additionally, it supports various customization features to tailor the appearance of the printed output, such as setting custom colors, fonts, and layout configurations. This flexibility ensures that the printed Gantt chart can meet specific user requirements and present the Gantt chart data in a clear and professional manner.

Properties

Property name Description
GanttChart References the Gantt chart component that is to be printed.
GanttChartPrintOptions Allows the user to specify various options for the printing specific to the Gantt Chart. These options can include settings for the layout, appearance, and content of the printed pages.
Options The default options from the printing library. (Based in TMS FNC Core.)

Methods

Method name Description
Print Print the Gantt chart.

Events

Event name Description
OnAfterDrawContent This event is triggered after the main content of the Gantt chart has been drawn onto the printed page.
OnAfterDrawFooter This event is called after the footer section of the printed page has been drawn. It can be used to add or modify any additional elements in the footer area post-rendering.
OnAfterDrawHeader This event is invoked after the header section of the printed page has been drawn. It allows for post-processing or adding extra elements to the header area once it has been rendered.
OnBeforeDrawContent This event occurs before the main content of the Gantt chart is drawn onto the printed page. It provides an opportunity to prepare or customize the content layout and elements before they are rendered.
OnBeforeDrawFooter This event is triggered before the footer section of the printed page is drawn. It allows for any preparatory steps or customizations to be made to the footer area prior to rendering.
OnBeforeDrawHeader This event is called before the header section of the printed page is drawn. It can be used to set up or modify the header elements and layout before the actual drawing process begins.
OnGetFooter This event is used to customize the content of the footer.
OnGetHeader This event is used to customize the content of the header. (Similar to OnGetFooter.)

TTMSFNCGanttChartExportOptions

Different options specifically for the Gantt Chart to configure the print output. These options can include settings for the layout, appearance, and content of the printed pages, such as whether to include the task list, the timeline, or both, and customizations for colors, fonts, and other stylistic elements to ensure the printed output meets specific requirements.

Properties

Property name Description
UseCustomTaskListAppearance This Boolean property determines whether a custom appearance is applied to the task list in the printed output. When set to True, the appearance specified in CustomTaskListAppearance is used.
UseCustomTimeLineAppearance This Boolean property indicates whether a custom appearance is applied to the timeline in the printed output. When set to True, the appearance specified in CustomTimeLineAppearance is utilized.
TaskListColumns This property of type TTMSFNCGanttTaskListColumns specifies which columns of the task list should be included in the printed output. It allows for selecting and organizing the columns to be printed. (If no columns are defined, the default columns of the Gantt Chart will be used.)
CustomTaskListAppearance This property of type TTMSFNCGanttChartExportTaskListAppearance defines the custom appearance settings for the task list. It includes details such as colors, fonts, and styles to be used when UseCustomTaskListAppearance is enabled. (By default a type of grayscale appearance is configured.)
CustomTimeLineAppearance This property of type TTMSFNCGanttChartExportTimeLineAppearance specifies the custom appearance settings for the timeline. It includes various styling options for the timeline when UseCustomTimeLineAppearance is set to True. (By default a type of grayscale appearance is configured.)
FitToPage This Boolean property determines whether the content should be scaled to fit within the page dimensions of the printed output. When set to True, the content is adjusted to ensure it is neatly divided on the page(s). Based on readability and minimum column widths.
RepeatHeaders This Boolean property controls whether the headers are repeated on each printed page. When set to False, headers will only appear on the first page; when True, headers will appear on every page.
Mode This property of type TTMSFNCGanttChartExportMode specifies what portions of the Gantt chart to print. The default value emBoth indicates that both the task list and timeline are printed.
HeaderHeight This Integer property sets the height of the Gantt Chart header in the printed output. A value of -1 indicates that the default height in the Gantt Chart is used.
ItemHeight This Integer property specifies the height of each item (task) in the printed output. A value of -1 means the default item height configured in the Gantt Chart is used.
TimelineGroupHeight This Integer property sets the height of the groups within the timeline in the printed output. A default value of -1 indicates that the standard group height configured in the Gantt Chart is used.
TimelineUnitWidth This Integer property defines the width of each unit in the timeline. A value of -1 uses the default unit width configured in the Gantt Chart.
TaskListBorderDraw This property of type TTMSFNCGanttChartExportTaskListBorders determines how borders are drawn in the task list of the printed output. The default value ebCell specifies that borders are drawn around each cell.