I use Template-Files for my reports. Is it possible, after I have loaded a template-file into my report-component, to check wether the format is ASCII or Binary ?
Check the Report.Template.Format property. It is streamed down to the template file as well. Save a report to ASCII format and look for the property entry listed near the top of the template file in the Template object section.
> Check the Report.Template.Format property. It is streamed down to the
It seems, that the Format-property is only used for saving. When I set the Format to ftBinary and load a template in ASCII-format, then the format-property stays at ftBinary.
Yes, set the property before saving the report. You are seeing the proper behavior. We did this so that you won't lose your template settings in case you load the wrong template. Plus, for database templates, you won't have to save the database settings in every template. They can be set on the report object's template property. The templates that are loaded will not have to worry that they will overwrite the database settings.
Comments
template file as well. Save a report to ASCII format and look for the
property entry listed near the top of the template file in the Template
object section.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com
It seems, that the Format-property is only used for saving. When I set the
Format to ftBinary and load a template in ASCII-format, then the
format-property stays at ftBinary.
Guido
behavior. We did this so that you won't lose your template settings in case
you load the wrong template. Plus, for database templates, you won't have to
save the database settings in every template. They can be set on the report
object's template property. The templates that are loaded will not have to
worry that they will overwrite the database settings.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com