run-time report designer

edited 7:23AM 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 7:23AM
    Hello,

    Just don't call the designer from your app.
  • edited 7:23AM
    And how do I do that?
  • edited 7:23AM
    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 7:23AM
    I would like to prevent the user in the viewer can invoke the run-time report designer !
  • edited 7:23AM
    Ok, call the following code:

    FastReport.Utils.Config.PreviewSettings.Buttons = PreviewButtons.All & ~PreviewButtons.Edit;
  • edited 7:23AM
    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.