How to Add Form Component Values to a Report using the Designer?
Good Afternoon,
I have ReportBuilder Professional Edition Version 15.04 Build 145 running within Delphi XE4.
I've got a ppReport and a ppDBPipeline hooked up to a ClientDataset. I'm able to add all the ClientDataSet fields to the report in the designer.
I have three TEdit and TStaticText controls on the form. I'd like to add the TEdit.Text and StaticText.Caption values to the report as well.
How do I go about exposing these form components and making them available from within the Designer so I can add them to the report?
Thank you in advance.
--
Michael Riley
GySgt USMC (Ret)
www.zilchworks.com
I have ReportBuilder Professional Edition Version 15.04 Build 145 running within Delphi XE4.
I've got a ppReport and a ppDBPipeline hooked up to a ClientDataset. I'm able to add all the ClientDataSet fields to the report in the designer.
I have three TEdit and TStaticText controls on the form. I'd like to add the TEdit.Text and StaticText.Caption values to the report as well.
How do I go about exposing these form components and making them available from within the Designer so I can add them to the report?
Thank you in advance.
--
Michael Riley
GySgt USMC (Ret)
www.zilchworks.com
This discussion has been closed.
Comments
There are a couple options:
1. Use a JITPipeline to make Delphi values available inside the report.
This would be a matter of creating fields for each TEdit etc. and then
using the OnGetFieldValue event, returning the proper value according to
the requested field.
2. By upgrading to RB Enterprise, you could use RAP to retrieve Report
parameter values. See the following article and example.
http://www.digital-metaphors.com/rbWiki/End-User/Fundamentals/Report_Parameter_Fundamentals
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Thank you Nico.
--
Michael Riley
GySgt USMC (Ret)
www.zilchworks.com