Need help with ppDPTeeChart
Hi,
I'm using Delphi 7, with ReportBuilder 7.04 and Teechart Std 4.04.
When I try to generate a graph using the DBChart control in the report, no
pipelines or datasets show up in the dataset dropdown box in the Datasource
control tab.
I'm confused, as the help file states:
-----------
This is a data pipeline based TeeChart component. When you create a series,
access the DataSource tab, and select either 'Dataset' or 'Single Record' as
the datasource type, then the TeeChart Editor will display the Name property
of all data pipelines on the form or in data modules accessible by the form.
-----------
I'm assuming therefore, that the component will link to a Pipeline, even
though the dropdown combo still says dataset, however none of my pipelines
show up in the dropdown list.
I have the report linked to a pipeline, which is linked to a datasource, and
then to a dataset.
Can someone please tell me what I'm missing?
Thanks & Regards
Adam.
I'm using Delphi 7, with ReportBuilder 7.04 and Teechart Std 4.04.
When I try to generate a graph using the DBChart control in the report, no
pipelines or datasets show up in the dataset dropdown box in the Datasource
control tab.
I'm confused, as the help file states:
-----------
This is a data pipeline based TeeChart component. When you create a series,
access the DataSource tab, and select either 'Dataset' or 'Single Record' as
the datasource type, then the TeeChart Editor will display the Name property
of all data pipelines on the form or in data modules accessible by the form.
-----------
I'm assuming therefore, that the component will link to a Pipeline, even
though the dropdown combo still says dataset, however none of my pipelines
show up in the dropdown list.
I have the report linked to a pipeline, which is linked to a datasource, and
then to a dataset.
Can someone please tell me what I'm missing?
Thanks & Regards
Adam.
This discussion has been closed.
Comments
That's a limitation that exists when using TeeChart 4.04. Access the
RBuilder.hlp, select the Table of Contents, and then select ReportBuilder
Reference | TeeChart | Delphi X where X is the version of Delphi that you
are using.
The following is from the RBuilder.hlp
TeeChart 4.04
----------------
Status: Partially Operational
Status Notes
--------------
Within the Delphi IDE:
- Cannot assign a data pipeline to a newly created data-aware TeeChart.
- Cannot modify an existing data-aware TeeChart created with previous
versions of RB and TeeChart.
Within the end-user report designer (at run-time):
- Fully Operational
--
Nard Moseley
Digital Metaphors Corporation
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Thanks for your reply. Do you have any suggestions on a work around for
this?
Thanks & Regards
Adam Hair.
The version bundled with Delphi has limitations that we cannot get around.
Digital Metaphors is not trying to make you purchase TeeChart, we have no
affiliation with Steema. Its just a limitation of the version of TeeChart
the is bundled with Delphi. We cannot extend it, to include the
datapipelines, like we can with the new version of TeeChart.
Unfortunately Borland has made a practice of exploiting the third-party
component providers. The publishers of these components, typically do not
receive any money from Borland for having their product bundled in. The
publishers of these components are counting on developers like you to
purchase the registered version. Otherwise they will go out of business.
--
Nard Moseley
Digital Metaphors Corporation
http://www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Thanks for your reply. At this stage, it was for one report in only one
application as an extra little addon feature, nothing major, so I presently
can't justify the price of the upgrade, but will consider it in future.
Thanks & Regards
Adam.
us to have teecharts with reportbuilder:
Instead of placing a teechart *in* report builder, you can place one on the
form instead, and then put a Tppimage component where you want the graph to
appear in the report.
In the ppimage's OnPrint event, place the following:
procedure TReportIncomeHistoryGraph.ppImage1Print(Sender: TObject);
begin
ppimage1.Picture.Bitmap.Width := DBChart1.Width;
ppimage1.Picture.Bitmap.height := DBChart1.height;
dbchart1.Draw(ppimage1.Picture.Bitmap.Canvas,
Bounds(0,0,ppimage1.Picture.Bitmap.Width, ppimage1.Picture.Bitmap.Height));
end;
It may not be the perfect solution, but it does allow you to add charts to
reports.
Hope this helps someone...
Cheers
Adam.