Home End User
New Blog Posts: Merging Reports - Part 1 and Part 2

Saving a report to a database

edited November 2006 in End User
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

Comments

  • edited November 2006
    H Suyin,

    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

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited November 2006
    We are working now with version 10.04. Is backward compatibility supported
    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
  • edited November 2006
    It is really "OnPageRequest Invalid property value" and the other error is
    "TdaBDEQueryDataView not found" and the report is loaded with an empty data.



    --- posted by geoForum on http://delphi.newswhat.com
This discussion has been closed.