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

New Report state

edited October 2012 in End User
If I create a new report in the Designer a number of properties of the
previous report that I was editing are carried over. So when I go to the
Data tab I am seeing the QueryViews from the previous report; and on the
Design tab I'm seeing the TppParameters that were in the the previous
report. Is this WAD, a bug or should I be calling some initialization
code somewhere?


TIA, Paul

Comments

  • edited October 2012
    File | New Report in the designer, only frees the objects in the layout.

    For RB 14.06 the ReportExplorer File | New free the data module, code
    module, and parameters. Here is the relevant code. You can use the
    Report.Template.OnNew event to implement this code and/or set any default
    report properties.

    FReport.FreeModules;
    FReport.Parameters.Clear;
    FReport.Template.New;



    -
    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com

    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
  • edited October 2012
    On 15/10/2012 16:52, Nard Moseley (Digital Metaphors) wrote:


    Thanks for that Nard, I'll sort it out. Is there a good reason for
    having the Designer behave so differently to the Report Explorer - seems
    rather odd for it NOT for clear everything when creating a new report?

    Paul
This discussion has been closed.