Close the Dialog Box
PixelPointer
Vaughan, Ontario
I have a report with a dialog box. Before the report is even loaded, a variable may have been set by the user, with some default values. I want to run the report without even showing the dialog box, or by setting the appropriate values in the dialog box, through report code script, and call the button click event. I have tried to call the actual event, but it does not work. I have tried using, Button1.Click, but it is not accepted. Can someone help me out?
Comments
this is the very first bit of script that is run, you can use it to initialize settings.
test the variable if it has a value then set the dialog page visible to false.
or from delphi after loading the report
use the findobject method.