TeeChart in reports (16.03 with Delphi 2007)
If I add an chart to a report in my "End User" (i.e. runtime designer)
application then the context menu never displays "Edit Chart", "Export
Chart", "Refresh Data"...just the standard menu entries (Position,
visible, etc). Yet if I open (design time) the report in your
MasterDetailTeeChart demo project (downloaded from WIKI) I DO get these
entries, making the chart, err, "usable"
What am I doing wrong? I've all the following in my uses:
ppChrt,
ppChrtDP,
TeEngine,
Series,
TeeProcs,
Chart,
DBChart
TIA, Paul
application then the context menu never displays "Edit Chart", "Export
Chart", "Refresh Data"...just the standard menu entries (Position,
visible, etc). Yet if I open (design time) the report in your
MasterDetailTeeChart demo project (downloaded from WIKI) I DO get these
entries, making the chart, err, "usable"
What am I doing wrong? I've all the following in my uses:
ppChrt,
ppChrtDP,
TeEngine,
Series,
TeeProcs,
Chart,
DBChart
TIA, Paul
This discussion has been closed.
Comments
You will need to add ppChrtUI to your uses clause to gain end-user
features at runtime.
Take a look at the following articles on other units that need to be
added to enable end-user features at runtime.
http://www.digital-metaphors.com/rbWiki/End-User/Fundamentals/Registration_of_Components
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
The end user demos (which forms the basis of my implementation of the
designer in my app just has the following to enable TChart
{$IFDEF TeeChart}
ppChrt, ppChrtDP,
{$ENDIF}
Wasn't aware of that article, but all working now, once I also followed
the "missing files for D2007" article on TeeChart as well
add a TppDBTeeChart to a report (not a TppTeeChart ) I get an immediate
access violation (call stack snippet below)
exception class : EAccessViolation
exception message : Access violation at address 004A3B21 in module
'HireTrackNX.exe'. Read of address FFFFFFFC.
main thread ($870):
004a3b21 HireTrackNX.exe Graphics 2463 TCanvas.CopyRect
01094f09 HireTrackNX.exe ppDesignControls 899 TppDesignControl.Paint
004e59c9 HireTrackNX.exe Controls 9818 TGraphicControl.WMPaint
004dd4a7 HireTrackNX.exe Controls 5146 TControl.WndProc
004ec505 HireTrackNX.exe ImgList 639 TCustomImageList.Draw
I've uninstalled TeeChart and RB serveral times, manually run the
RBTeePackageBjuilder.exe or just let the RB installer do it. Changes
paths for the install or left as default. Recompiled packages manually.
And so on. Nothing fixes it
Any ideas?
Paul
This is not a known issue. I just tested a data aware chart with my
installation of Delphi 2007 and the latest version of RB and TeeChart
and everything functioned as expected.
Are you able to recreate this with a simple example using only Delphi
and RB components? If so, please send it to
support@digital-metaphors.com and I'll take a look.
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
installation as we have another machine that we use just for building
our app for distribution and the end user designer works fine in that.
So I wasn't reporting a suspected bug, just wondering if anyone has any
ideas as I'm out of 'em!