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

Checking to see if data, code or report is being saved

edited May 2005 in General
Hi,

How do we test to see if the user is saving data, code or the entire report?

Also if I am exporting a datamodule to a file and i check
Report.Template.SaveTo in Report.Template.OnSaveStart it always shows
stDatabase.

Kind regards
Steffen

Comments

  • edited May 2005
    Hi Steffen,

    This is a little bit tricky. Each type of file (.rtm, .dtm, .ctm) contians
    its own template object. You can get access to the dade and rap templates
    using the DataModule and CodeModule objects. Get access to those objects
    using the daGetDataModule(Report) and raGetCodeModule(Report) routines, then
    tie into their template events (perhaps the OnStartSave event) to determine
    what the file extension of the file being saved is.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.