How to hide dialog programatically

Hi all,
I want to pass parameters from inside system and using report dialog , so when I want to run report directly the dialog should appear and when I want to run report meanwhile using a related transaction form the dialog should disappear, so how to do that

Comments

  • edited 12:06AM
    use script, pass parameter "EnableDialog" if you run fastreport from system
    namespace FastReport
    {
      public class ReportScript
      {
        private void _StartReport(object sender, EventArgs e)
        {
          string enableDialogForm = (string)Report.GetParameterValue("EnableDialog");
          if (!String.IsNullOrEmpty(enableDialogForm))
            Form1.Visible = false;
        }
      }
    }
    

Leave a Comment