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 2:25AM
    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

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.