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

Checking if Template has ASCII-Format

edited February 2003 in General
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 ?


Guido

Comments

  • edited February 2003
    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.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited February 2003
    > 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.


    Guido
  • edited February 2003
    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.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.