How to print/export Gantt chart

Since the first commercial version of Xgantt in 1998, Xgantt has been committed to the research and development of planning and project management controls. After more than 20 years of accumulation and precipitation, it can currently provide software developers and end users with the best Top-level planning and project management control products to help users quickly integrate Gantt chart, network chart, resource histogram, schedule calendar, resource scheduling and other functional modules required by project management software, and provide a full range of support and services .

VARCHART XGantt is a powerful Gantt chart control, its modular design allows you to create applications that meet your needs. XGantt can be used in .NET, ActiveX and ASP.NET applications. It can be quickly and simply integrated into your application to help you identify performance bottlenecks, avoid delays, and efficiently use resources, making complex data easier to understand.

VARCHART XGantt has been on the market for nearly 30 years. It provides the most complete C#Gantt chart control, which can be used to build modern and reliable industry resource scheduling applications.

Print chart

If you have finished modeling the diagram, you can finally print it. In runtime mode, select Print from the context menu (right click on the empty diagram). This will take you to the Windows print dialog.
You can also use the ShowPrintDialog method of the object VcGantt to trigger the printing of the chart.

If you want to edit the printer settings in runtime mode, you can select the menu item Print setup... from the context menu and the corresponding Windows dialog box will pop up.

The PrintEx method of the object Vc Gantt allows you to print the chart directly. The dialog box will not be displayed.

If you want to edit the page setup at runtime, you can select Page setup... from the context menu or select Print Preview from the context menu, and then click the Page Setup... button.

You can also use the ShowPageSetupDialog method of the object VcGantt to open the corresponding dialog box.

In the "Page Setup" dialog box, you can set things such as zoom ratio, page numbering, page margins, alignment, etc. See "Settings Page" for more information.

Export chart

You can export the chart as a graphic file. There are two different ways to export.
Please select the menu item "Export Graphics" from the default context menu. From there you can enter the Windows dialog Save as, which allows you to save the chart as a graphic file.
Use the API method ShowExportGraphicsDialog or ExportGraphicsToFile.
Please find detailed information about the graphics format in this chapter.

Preservation arrangement

All settings made on the property page at design time will be added to your project as resources. The changes will only take effect after the project is saved, because only then will the embedded resources be updated.

prompt. For this reason, you should activate the "Save all changes" option in "Tools">"Options">"Environment">"Projects and Solutions">"Build and Run" in Microsoft Visual Studio .NET 2005 to Automatically save your settings before compiling.

If you do not select this option, if you want to use the property page settings in the program, you will have to save your project manually.

You can store the settings of the property page in a configuration outside the project at any time and load them when needed. This is useful if you want to use the previous settings again, or if you need to use the same settings in different projects.

A stored configuration consists of two files with the same name but different extensions, (INI and IFD), both of which are indispensable.

How to save your current configuration:

On the "General Properties" page, please click the "Export..." button and enter the name of the INI file. The ifd-file with the same name will be created automatically.

How to load the stored configuration:
On the General Properties page, please click the Import... button and select the desired file.

Guess you like

Origin blog.51cto.com/15078157/2643808