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.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com