ShowModal brings wrong form
Hello
I've noticed something very strange. I have a report with 2 dialog pages. I want to show the second one after user click on report object, but FR shows the first one !
I've prepare a test case.
There is one more thing: when I enter into desing mode and click preview it works ok, but report executed from code:
frxReport1.PrepareReport();
frxReport1.ShowPreparedReport;
behaves like I described above.
P.S. (in Delphi XE there is additional AV after dblclick, in D5 it show me DialogPage1 instead of DialogPage2)
b
I've noticed something very strange. I have a report with 2 dialog pages. I want to show the second one after user click on report object, but FR shows the first one !
I've prepare a test case.
There is one more thing: when I enter into desing mode and click preview it works ok, but report executed from code:
frxReport1.PrepareReport();
frxReport1.ShowPreparedReport;
behaves like I described above.
P.S. (in Delphi XE there is additional AV after dblclick, in D5 it show me DialogPage1 instead of DialogPage2)
b
Comments
Did you set TfrxReport.EngineOptions.DestroyForms to False?
I didn't. After
frxReport.EngineOptions.DestroyForms := False;
it works OK.
Big thanks !
I'd like to ask U one more thing - what exactly this property mean ? Destroying forms after preparing a report ? In our system each reports templates are loaded from database - is it better to switch it to False forever ?
b