This is a TChart issue, not a RB issue. Get the pro version of TChart and it will work fine.
FWIW, I should share what I have done--because I believe it has made life a lot easier for me :-)
I don't use TCharts in reports (even though I have Tee Chart Pro), I use TppImages. I rename the image to something that corresponds to a TChart in my application. After laoding reports (I load them from PDX files, and multiple reports into one, each as a sub report), I scan the main report for TppImages. I add each TppImage to a TList, along with its size and name and scaling information. Then I send that list back to the calculator (put simply, my app is a set of calculators) that called it. The calculator has one or more charts (one calculator has +10 charts in it). It then creates a WMF graphic for the report, which gets put back into the report.
What I really like about this method is that when I allow a user to customize the chart in the program (what is visible/not visible, colors, type of series, etc), it changes what shows up in the reports. No need to customize both. Has saved me a bootload of time.
Anyone interested in some source snippets, let me know and I can post them here.
I am intrested too, now i'm having some problems with a reports that runs in a ISAPI DLL end creates HTML output (TXtraDev). when placing a TeeChart on it works fine in the IDE, even sending it to html, it creates a jpeg of the Chart. But when running as a DLL, beneath IIS the Chart doesn't initialize and sends no output.
Comments
will work fine.
FWIW, I should share what I have done--because I believe it has made life a
lot easier for me :-)
I don't use TCharts in reports (even though I have Tee Chart Pro), I use
TppImages. I rename the image to something that corresponds to a TChart in
my application. After laoding reports (I load them from PDX files, and
multiple reports into one, each as a sub report), I scan the main report for
TppImages. I add each TppImage to a TList, along with its size and name and
scaling information. Then I send that list back to the calculator (put
simply, my app is a set of calculators) that called it. The calculator has
one or more charts (one calculator has +10 charts in it). It then creates a
WMF graphic for the report, which gets put back into the report.
What I really like about this method is that when I allow a user to
customize the chart in the program (what is visible/not visible, colors,
type of series, etc), it changes what shows up in the reports. No need to
customize both. Has saved me a bootload of time.
Anyone interested in some source snippets, let me know and I can post them
here.
Ed Dressel
Team DM
I'm interested.
I do the same like you via
TmpMeta := Chart1.TeeCreateMetafile(True, Rect(0, 0, Chart1.Width,
Chart1.Height));
frmDoc.ppImage1.Picture.Assign(TmpMeta);
Cheers
Martin Cremer
Erich
using TeeChart.
Would appreciate if you send me the code snippets.
Thanks,
Vikram
I am intrested too, now i'm having some problems with a reports that runs in
a ISAPI DLL end creates HTML output (TXtraDev). when placing a TeeChart on
it works fine in the IDE, even sending it to html, it creates a jpeg of the
Chart.
But when running as a DLL, beneath IIS the Chart doesn't initialize and
sends no output.
So might be intrested in your approach.
Harry
the problem you mention.
Ed Dressel
Team DM
I don't see any attachments? Or, is there a separate newsgroup for
attachments?
Thanks,
Vikram
Sorry, in a separate post below titled 'Code Snippets for Images'
Ed Dressel
Team DM
Vikram