Drill Down and Dialogs just don't work
Good morning,
I have asked this question prior but don't understand the response.
Once again. I have a dialog that sets report parameters. Once the dialog is close (ModalResult = mrOK) and the report displayed, clicking the drill downs redisplays the dialog.
I understand the drill-downs run the reports again but do not want the dialog. In the dialog I have set the query etc and it does not need to execute again.
I have tried Visible:=false and it seems to work in the editor but the moment I run the report from the preview only it shows the dialog again.
I'm sure that there is a fix to this because it would be completely unusable without it.
Any ideas please (code example would be nice).
Thank you
Regards
Tony Benci
I have asked this question prior but don't understand the response.
Once again. I have a dialog that sets report parameters. Once the dialog is close (ModalResult = mrOK) and the report displayed, clicking the drill downs redisplays the dialog.
I understand the drill-downs run the reports again but do not want the dialog. In the dialog I have set the query etc and it does not need to execute again.
I have tried Visible:=false and it seems to work in the editor but the moment I run the report from the preview only it shows the dialog again.
I'm sure that there is a fix to this because it would be completely unusable without it.
Any ideas please (code example would be nice).
Thank you
Regards
Tony Benci
Comments
frxReport1.EngineOptions.DestroyForms:=False;
frxreport1.engineoptions.Destroyforms:= false;
frxreport1.showreport;
http://rapidshare.com/files/421592412/DrillDown_Dialogs.zip
In procedure Button1OnClick(Sender: TfrxComponent)
set:
next in RptOnRunDialogs( procedure RptOnRunDialogs(var Result: Boolean);) event or PageOnBeforePrint or smth
set code like: