Take a look at the "Code Based" thread in the TechTips newsgroup for numerous examples of createing reports and report objects in code. Also the ReportBuilder Developer's guide leads you through the complete process of creating a report completely in code.
To get things a little bit clear I have to say that I didn't mean "Code Based Reports".
This is my scenario for your knowledge.
I have 1 (one) component of type "ppReport" and another one of type "ppDesigner" in a form. What I want to acomplish is loading a template from a file into "ppTemplate" component of the ppReport and then edit it within the ppDesigner component, of course connected to the ppReport component.
This should be done at runtime, that's what I wanted to mean.
I hope you or someone else could help me with this.
This can be done very easily by following the steps below...
1. Set the TppDesigner.Report property to your report object. 2. Load you template file into the report object using the TppReport.Template.FileName property, and TppReport.Template.LoadFromFile procedure. 3. Call the TppDesigner.ShowModal to design the report at run-time.
Comments
Take a look at the "Code Based" thread in the TechTips newsgroup for
numerous examples of createing reports and report objects in code. Also the
ReportBuilder Developer's guide leads you through the complete process of
creating a report completely in code.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
To get things a little bit clear I have to say that I didn't mean "Code
Based Reports".
This is my scenario for your knowledge.
I have 1 (one) component of type "ppReport" and another one of type
"ppDesigner" in a form. What I want to acomplish is loading a template from
a file into "ppTemplate" component of the ppReport and then edit it within
the ppDesigner component, of course connected to the ppReport component.
This should be done at runtime, that's what I wanted to mean.
I hope you or someone else could help me with this.
Thanks again.
Fabio.
Thanks for the further explaination.
This can be done very easily by following the steps below...
1. Set the TppDesigner.Report property to your report object.
2. Load you template file into the report object using the
TppReport.Template.FileName property, and TppReport.Template.LoadFromFile
procedure.
3. Call the TppDesigner.ShowModal to design the report at run-time.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com