Thursday, October 12, 2006

Business Graphics in Xailer

[Original post by Freddy in Mundo Xbase]

Today I want to show you the integration between Xailer (using TOleAuto) with the ChartDirector library, this will let us give our applications, in an easy way, real professional business graphics.


Gráfico de tarta

ChartDirector is a commercial library with a relative low price, between $99 for an individual licence to $499 for the free distribution library that will let us to integrate CharDirector in our exe files.

You can also get a demo version, limited by a little publicity line at the bottom of the graphic, this version is useful for testing and learning the use of the library.

With CharDirector we can create from simple pie graphics, to very complex Gantt diagrams, radar, financial, meter, dispersion, paretto, polars, combined graphics, etc...

If you want to give it a try, the first step will be download the demo version from: http://www.advsofteng.com/download.html

You have to download the ChartDirector for ASP/COM/VB

Once installed we are ready to use it with Xailer.

Before going on, it's important to make clear what does ChartDirector really do.

ChartDirector simply convert to a graphic image (jpg, gif or png) a code given by us from within our program. This feature, let us handle with Xailer the obtained result, putting it into a form using a TImage control, or printing it in a report, or save a log of the generated graphics, you only have to give a name to every single file.


Gráfico de barras

To integrate the graphic in one of our forms, we only have to pick a TImage control from the IDE toolbar, and drop it into the form, later, in the code, we can associate the control to the graphic file created with ChartDirector, let's check the following sample:

Código

You can download this sample, clicking here