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

TppDesigner ShowData

edited September 2005 in General
Hi,

When I load a report using the end-user ReportDesigner (TppDesigner
component) without printing the report first all works fine I only see
alliasses in the designer report component captions.
When I load a report using the end-user (TppDesigner component)
ReportDesigner but do a print first Variant Errors get thrown and alliases
are gone. ReportDesigner.ShowData is set to false. Below you can find in
short the code i use to print a report and show the ReportDesigner. I don't
want to see any data appear in the designer report component captions at any
time when i'm on the design tab from the ReportDesigner. What's going wrong?

OpenDataSetsReport;
MyReport.Print;
CloseDataSetsReport;

ReportDesigner.Report := MyReport;
ReportDesigner.ShowData := False;
ReportDesigner.Showmodal;


Greetings,
Filip Moons

Comments

  • edited September 2005
    Hi Filip,

    The ShowData property is saved down in the RBuilder.ini file in order to
    keep consistance in the Designer settings. In order to override this you
    will need to set the value of the ShowData property after ShowModal has been
    called. This worked correctly for me inside the TppDesigner.OnShow event.

    Note that the ShowData option is available in the "View" section of the main
    menu of the designer. If you would like to take this feature away from your
    users completely you can edit the main menu using the TppDesigner.Menu
    property.

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited September 2005
    Hi Nico,

    Yes it works now. Thx Nico.

    Greetings,
    Filip Moons

This discussion has been closed.