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

From ftASCII to Binary

edited April 2003 in Component Writing


Hi, I am developing an end user report solution but I have a litlle problem.
I save my report settings in ASCII format but when i open it with the
designer in my solution, make some changes and save it, what it does is
change the format from ftASCII to Binary, damaging the whole thing.

The template format of m tppReport component is set to ftASCII.

What can i do to avoid changing the data from ASCII to binary.
Thanks in advance. I am desperate my friends.

Alexander

Comments

  • edited April 2003
    The Report.Template.Format property controls this. If you load an ascii
    template into a TppReport on a form via the designer component, then when
    you save it it will be saved in the format that you have specified on the
    Report.Template.Format property. For example, create a template and then
    save it to file in ascii format. Then load this ascii template into a report
    that has its format property set to binary. You should see that it loads
    even though the format of the template you are trying to load is ascii and
    not binary. Then if you check the format property of the report, it is still
    set to binary even though you've just loaded an ascii template. To solve
    the problem, set the Report.Template.Format property on the form to ftASCII.
    Then when you save the loaded ascii report, it will save as ascii.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.