Page 1 of 1

Sending charts to a file

Posted: Mon Jun 04, 2007 10:00 pm
by 8443014
I have a program that creates several charts using Delphi7. I would like to export all thes charts in sequence to a single file including also some text to form a kind of report that can be subsequently printed out. How can I do this?
Mike Glazer

Posted: Tue Jun 05, 2007 7:48 am
by narcis
Hi Mike,

I'm afraid this is not possible for now. You can either export chart data or chart settings but each chart is saved in a different file. If you want to achieve what you request you'll have to manually merge those files.

You'll find all TeeChart's exporting possibilities at Tutorial 12 - Exporting and Importing Charts. Tutorials can be found at TeeChart's program group.

Posted: Wed Jun 13, 2007 3:27 am
by 9348127
The solution our team has taken has been to save the charts, and generate an HTML document that contains those charts (via IMG tags), along with additional text, tables and so on. We then display the HTML in a TWebBrowser control in our application.

As an added feature, we also save the chart descriptions in external files (.tee files). We have logic in place that allows the user to click on any chart displayed in the WebBrowser control to open a new dialog; this dialog uses the associated .tee file to display the selected chart and let the user invoke TeeChart's EditChart function to modify it, examine the data, etc.

This approach has met our reporting needs quite well.