Interactive Gantt Control VARCHART XGantt Tutorial: How to print and export charts (ActiveX edition)

VARCHART XGantt for Industry 4.0 project management, interactive Gantt great solution, Gantt charts world-class masters. It is an interactive Gantt chart control, and its modular design allows you to create applications that meet your and your customers needs. (Our leading Gantt controls VARCHART XGantt can be used in .NET, ActiveX and ASP.NET applications.)

This article describes, VARCHART XGantt user manual tutorials to teach you how to print charts, graphs and exporting to save the configuration (this is the ActiveX version of the tutorial) ,. NET version of Guide Click here to view. Interested friends may wish to download a free version to try it, here is the content of the tutorial ~

Print charts

If you have completed the design of the chart, you can finally print it. In the run-time mode, select "from the context menu to print " (in the right-click an empty figure). This will take you to the Windows Print dialog box.

You can also use the object VcGantt of PrintIt method to trigger the printing of the chart.

If you want to edit the printer settings mode at runtime, you can choose from the context menu in the menu item " Print Setup ... " and then pop up the corresponding Windows dialog box.

Object Vc Gantt's PrintDirect method allows you to directly print the chart. Will not be displayed dialog box.

If you want to edit a page at run time, you can choose from the context menu Page Setup ... or in the context menu select Print Preview , and then click the Page Setup ... button.

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

In the Page Setup dialog box, you can specify such as zoom, page number if needed, margins, alignment and so on.

Export charts

Your charts can be exported as a graphics file:

  • Select the menu item "from the default context menu to export graphics ." From there, you will enter the Windows dialog box Save As , you can save a chart as a graphic file.

  • The method of using the API ShowExportGraphicsDialog or ExportGraphicsToFile .

Save Configuration

You can store the settings properties page of the project at any time to an external configuration, and reload them when needed. If you want to re-use the previous settings or the need to set up the same settings for different projects, which will be very useful.

Configuration consists of two with the same name but different contents of the file, namely INI file and IFD file, they are essential.

How to save the current configuration:

In the input box configuration file, you can specify the name of the file currently set to be stored. If the file name does not exist, and click "Apply", then create an INI file and link it to VARCHART ActiveX instance.

How to reload the configuration:

In the input box configuration file, you can specify a name from which to load settings files. If the file exists and you click " apply ", the configuration will be loaded, and since then, it will link to VARCHART XGantt AcitveX instance. All current settings will irrevocably expire.

Note: Set the configuration file is loaded only once. VARCHART XGantt will not load them from the same file a second time. In contrast, from the internal memory load settings, and these settings the same configuration file.

Thus, the data editor to modify the configuration file will not work. If you want to VARCHART XGantt to accept the modified configuration file, you must rename the modified INI file and the corresponding IFD file and in the " General " on "property page configuration file " Name field, enter the modified INI file.

ActiveX edition print charts, export charts, save the configuration tutorials end of the matter, you want to see the .NET version of the tutorial Click here to view ~


Guess you like

Origin blog.51cto.com/14467432/2436964