How to un-/hide certain pages
I've made a report with several pages. I want to pass data if a specific page should be shown. There is the Visible property which can be changed so I tried to change it programatically.
I used the class code and added a constructor "public ReportScript()" and set the "Page.Visible = false;" but it did not work. So I tried several events and placed a "Page2.Visible = false;" but it did not work either.
Where and how do I have to enter the code to set a page to visible or not ?
I used the class code and added a constructor "public ReportScript()" and set the "Page.Visible = false;" but it did not work. So I tried several events and placed a "Page2.Visible = false;" but it did not work either.
Where and how do I have to enter the code to set a page to visible or not ?
namespace FastReport
{
public class ReportScript
{
public ReportScript()
{
Page2.Visible = false;
}
}
}
Comments
The problem is you can't hide the very first page if you use any of these events. How to hide the first page ? Are there any further events which will occur earlier ?
For others searching for the same:
On the right top where "Berichtsbaum" is located click on the top element. Here it's "Report - reports/application_1.frx". It groups all elements together in one report. When you select this report use the window beneath and click on the events icon. There you will find the "StartReport" and "FinishReport" events - use the StartReport to hide the very first page.
[closed]
since class is singleton, use mvvm light to communicate between classes (class in fastreport script and class in formUI)
see http://blog.galasoft.ch/posts/2009/09/mvvm...t-messenger-v2/