Report Templates written in RB7
We have reports written in RB7 that when we save them,
the new properties are being added i.e. OutlineSettings
& TextSearchSettings in the templates. The trouble is,
once we distribute these reports to our users, who are still
using the old version of our app, written D6/RB6, they are
getting some errors because of these unrecognisedd new
properties. Is there a way to trap these errors ? What about
having some control as to what goes in the template file ?
I've fiddle with Template.OnSaveStart event but I can't
seem to change the Stream.
We don't want to maintain separate reports for RB6 & RB7.
thanks for your help
the new properties are being added i.e. OutlineSettings
& TextSearchSettings in the templates. The trouble is,
once we distribute these reports to our users, who are still
using the old version of our app, written D6/RB6, they are
getting some errors because of these unrecognisedd new
properties. Is there a way to trap these errors ? What about
having some control as to what goes in the template file ?
I've fiddle with Template.OnSaveStart event but I can't
seem to change the Stream.
We don't want to maintain separate reports for RB6 & RB7.
thanks for your help
This discussion has been closed.
Comments
The report templates are not forward compatable. Though it may be possible
to load and run new report templates on an old version of ReportBuilder, it
is definitely not a good idea as there have been many changes made and bugs
fixed that may not syncronize correctly when the new template is loaded. If
you would like to take a look at the source that handles these messages, see
the TppTemplate.LoadFromSource and TppTemplate.LoadError routines located in
the ppTmplat.pas file.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com