run-time report designer

edited 11:50AM in FastReport .NET
Hi,
how can I disable the run-time report designer? so that the user can no longer edit the report.

Comments

  • edited 11:50AM
    Hello,

    Just don't call the designer from your app.
  • edited 11:50AM
    And how do I do that?
  • edited 11:50AM
    Sorry, I don't understand your question.
    To run the report designer, you need to call the following code:
    using (Report report = new Report())
    {
      report.Load(...);
      report.Design();
    }
    

    If you don't need the designer, don't call this code.
  • edited 11:50AM
    I would like to prevent the user in the viewer can invoke the run-time report designer !
  • edited 11:50AM
    Ok, call the following code:

    FastReport.Utils.Config.PreviewSettings.Buttons = PreviewButtons.All & ~PreviewButtons.Edit;
  • edited 11:50AM
    Nice [img]style_emoticons/<#EMO_DIR#>/rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0" alt="rolleyes.gif" /> it runs[/img]

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.