I want handle the visibility of a form by data content. The only event where this can be handeled is the BeginRenderEvent from report.
I noticed that there is no data at this time, because the Dictionary.Connect() method will be called later than the InvokeBeginRender() Method.
Data is always a recordset which will be registered after instantiating StiReport.
Could I run into any problem or is there a performance impact, if I use the following code in the BeforePrintEvent?
Code: Select all
Dictionary.Connect();
Form1.Visible = (Root.ID_Rechnung > 0);
Andreas