• Что бы вступить в ряды "Принятый кодер" Вам нужно:
    Написать 10 полезных сообщений или тем и Получить 10 симпатий.
    Для того кто не хочет терять время,может пожертвовать средства для поддержки сервеса, и вступить в ряды VIP на месяц, дополнительная информация в лс.

  • Пользаватели которые будут спамить, уходят в бан без предупреждения. Спам сообщения определяется администрацией и модератором.

  • Гость, Что бы Вы хотели увидеть на нашем Форуме? Изложить свои идеи и пожелания по улучшению форума Вы можете поделиться с нами здесь. ----> Перейдите сюда
  • Все пользователи не прошедшие проверку электронной почты будут заблокированы. Все вопросы с разблокировкой обращайтесь по адресу электронной почте : info@guardianelinks.com . Не пришло сообщение о проверке или о сбросе также сообщите нам.

Share your Gantt Chart with the PDF and Print IO components

Sascha Оффлайн

Sascha

Заместитель Администратора
Команда форума
Администратор
Регистрация
9 Май 2015
Сообщения
1,486
Баллы
155
Efficient project management often requires the ability to share, print, and customize project timelines and task lists. The TTMSFNCGanttChartPDFIO and TTMSFNCGanttChartPrintIO components in

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

are designed to enhance your Gantt chart workflow by providing robust export and print capabilities. Let's dive into how these components can help you present your project data professionally and effectively.

Discover all these features and more at

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

I will be hosting a session showcasing the full potential of the TMS FNC Gantt Chart. Don't miss out on this opportunity to learn and engage with our latest tools.


PDFIO and PrintIO


As the name suggests the TTMSFNCGanttChartPDFIO allows you to export your Gantt chart data into a PDF format effortlessly, while the TTMSFNCGanttChartPrintIO component offers a powerful way to print your Gantt chart data directly.

Both of these components are based on the PDF and print functionality available in TMS FNC Core. The features for the Gantt Chart are similar, giving you almost the exact same results for PDF export and direct printing.

These controls have two common properties:

  • GanttChart: References the Gantt chart component to be exported.
  • GanttChartExportOptions: Customizes layout, appearance, and content settings for the file.



Key Features of the GanttChartExportOptions

Selective Export


Choose to export the task list, timeline, or both with the Mode property, giving you control over the content.

  • Task List Export: If you only need to share the details of the tasks, milestones, and schedules without the graphical timeline, you can export just the task list.
  • Timeline Export: Conversely, if the visual representation of the project's timeline is all you need, you can opt to export only the timeline.
  • Combined Export: For a comprehensive view, you can export both the task list and timeline, providing a complete picture of the project.



Customizable Appearance


Tailor the appearance with custom colors, fonts, and layout configurations, ensuring that your Gantt chart meets specific aesthetic and branding requirements.

By default the appearance of the Gantt Chart will be used, but with the CustomTaskListAppearance and CustomTimeLineAppearance properties, you can configure each part of the Gantt Chart as you want.
The custom appearances are initialized with grayscale colors to give a clear and simple look.

It is even possible to change the exported columns by name or size, as well as the item height and the unit width, or group and header height from the timeline.

To get even more out of the customization, you can also use the custom drawing events which have a Exporting property in their parameters, indicating if the event is triggered for normal drawing or for the export to PDF or printable pages.


Flexibility


Adjust settings such as page layout and content scaling to ensure the PDF is clear and readable.

  • Page Layout: Control the orientation (portrait or landscape) and size of the pages to best fit the content being exported.
  • Content Scaling: Ensure that the content fits neatly within the page dimensions by enabling options like FitToPage, which scales the content to avoid truncation and maintain readability. The RepeatHeaders option ensures the Gantt Chart column names and dates are shown on all pages for readability.


TMS Software Delphi  Components



Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.




How to use



procedure TForm.ExportBtnClick(Sender: TObject);
begin
pdfIO := TTMSFNCGanttChartPDFIO.Create(nil);
pdfIO.GanttChart := YourGanttChart;

//Basic PDF Options:
pdfIO.Options.OpenInPDFReader := True;
pdfIO.Options.PageOrientation := poLandscape;

//Part Selection
pdfIO.GanttChartPDFExportOptions.Mode := emBoth;

//Customization of Appearance:
pdfIO.GanttChartPDFExportOptions.UseCustomTaskListAppearance := True;
pdfIO.GanttChartPDFExportOptions.CustomTaskListAppearance.HeaderFill.Color := $FF4a4a4a;
pdfIO.GanttChartPDFExportOptions.CustomTaskListAppearance.HeaderFont.Color := $FFFFFFFF;
pdfIO.GanttChartPDFExportOptions.TaskListBorderDraw := ebRow;

pdfIO.GanttChartPDFExportOptions.ItemHeight := 60;
pdfIO.GanttChartPDFExportOptions.TimelineUnitWidth := 30;

//Select your Columns
pdfIO.GanttChartPDFExportOptions.TaskListColumns.AddColumn('taskname','Name', 200);
pdfIO.GanttChartPDFExportOptions.TaskListColumns.AddColumn('startdate','Start', 100);
pdfIO.GanttChartPDFExportOptions.TaskListColumns.AddColumn('enddate','End', 100);

//Other Settings
pdfIO.GanttChartPDFExportOptions.FitToPage := True; //Will try to fit everything on one page, otherwise will evenly divide on multiple pages.
pdfIO.GanttChartPDFExportOptions.RepeatHeaders := True;

pdfIO.Save('.\MyGanttChart.pdf');

Or

printIO.Print;
end;

procedure TForm.YourGanttChartBeforeDrawGanttTimeLineGroupTimeText(Sender: TObject; AGraphics: TTMSFNCGraphics; ADateTime: TDateTime;
ARow: Integer; var ADrawingParams: TTMSFNCGanttTimeDrawingParams; var AAllow, ADefaultDraw: Boolean);
begin
if ADrawingParams.Exporting then
begin
ADrawingParams.HorizontalAlignment := gtaCenter;
end;
end;

Conclusion


Both components are invaluable tools for enhancing the versatility and presentation of your Gantt charts. By providing flexible export and print options, these components help you share and present your project data in the most effective way possible.

Explore these components in

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

and take your project management capabilities to the next level!

Get Started with TMS FNC Gantt Chart Today!

For more information, detailed documentation, and examples, visit the

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

. Enhance your applications with powerful UI components designed to meet your needs.


For a deeper dive into the key features of the TMS FNC Gantt Chart and to learn about the roadmap for future developments, join us on Thursday, September 26th at the TMS Training Days session.

Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.



Пожалуйста Авторизируйтесь или Зарегистрируйтесь для просмотра скрытого текста.

 
Вверх Снизу