TppDesigner ShowData
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
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
This discussion has been closed.
Comments
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
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com
Yes it works now. Thx Nico.
Greetings,
Filip Moons