Table of Contents

Getting started with TMS FNC Gantt Chart Print IO

TTMSFNCGanttChartPrintIO prints a Gantt chart. This page sends a chart to the printer in a few lines; the Guides cover print modes, column selection, and page breaks.

Prerequisites

  • TMS FNC Core installed.
  • TMS FNC Gantt Chart installed and its runtime package referenced.
  • A configured TTMSFNCGanttChart on the form with tasks loaded.

Add the component

  1. Drop a TTMSFNCGanttChartPrintIO from the TMS FNC Gantt Chart palette page onto the form.
  2. Assign the chart and print:
procedure TForm1.PrintChart;
begin
  GanttChartPrintIO1.GanttChart := GanttChart1;

  GanttChartPrintIO1.GanttChartPrintExportOptions.Mode := emBoth;

  GanttChartPrintIO1.GanttChartPrintExportOptions.TaskListColumns.Clear;
  GanttChartPrintIO1.GanttChartPrintExportOptions.TaskListColumns.AddColumn('wbs', 'WBS', 80, 60);
  GanttChartPrintIO1.GanttChartPrintExportOptions.TaskListColumns.AddColumn('taskname', 'Task', 160, 120);
  GanttChartPrintIO1.GanttChartPrintExportOptions.TaskListColumns.AddColumn('startdate', 'Start', 90, 70);

  GanttChartPrintIO1.Options.PageOrientation := TPrinterOrientation.poLandscape;

  // Send the chart to the default printer.
  GanttChartPrintIO1.Print;
end;

Print sends the chart to the default printer using the configured export options and page orientation.

Next steps

  • Guides — print modes, task-list columns, and page breaks.
  • API reference — full class reference for TTMSFNCGanttChartPrintIO.