Close the Dialog Box

PixelPointerPixelPointer Vaughan, Ontario
edited 6:15AM in FastReport 4.0
;) 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

  • gordkgordk St.Catherines On. Canada.
    edited 6:15AM
    on the report code page, in the original empty begin end block
    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.
    ;)

Leave a Comment