Saving a report to a database
I'm creating an interface to load and save reports. I need the report to
be saved to a database. Setting the fields do the job of saving and
loading the report. But I have other fields in the table, that need to be
populated. How do I do this?. There is an event in the TppDesigner
component "OnCustomSaveDoc". This event can be used to customize the
saving process. But looking at the saving on the TppTemplate class, there
are some methods that are protected, and I can't use them in my code. I
don't know if I can save the report properly if I don't use this routines.
So what is the best solution in this case?.
--- posted by geoForum on http://delphi.newswhat.com
be saved to a database. Setting the fields do the job of saving and
loading the report. But I have other fields in the table, that need to be
populated. How do I do this?. There is an event in the TppDesigner
component "OnCustomSaveDoc". This event can be used to customize the
saving process. But looking at the saving on the TppTemplate class, there
are some methods that are protected, and I can't use them in my code. I
don't know if I can save the report properly if I don't use this routines.
So what is the best solution in this case?.
--- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.
Comments
The OnCustomSaveDoc gives you complete control over the saving process. It
is up to you to implement the routines to save the report template to the
location that you want. As an alternative, you might try using the actual
template events to add your own logic to update and load other fields in
your DB. Take a look at the TppTemplate.OnSaveStart and OnSaveEnd events.
--
Regards,
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
for version 6.02?. I'm having problems opening old reports in the new
components. For example "OnPageRequest property not found".
Also we created this reports using BDE, and in the new Report explorer I'm
using the NativeDB and I got some unknown classes. Need some input on this
matter, we have a lot of reports and we already have the new version. I
need to know if this reports are going to be reusable or if we have to
rewrite everything.
Thanks
--- posted by geoForum on http://delphi.newswhat.com
"TdaBDEQueryDataView not found" and the report is loaded with an empty data.
--- posted by geoForum on http://delphi.newswhat.com