Disable Print

edited 6:56AM in FastReport .NET
Hi,

Is there a way to disable all print/email functionality in the preview report window?

The reason I'm asking is that maybe it will be need it for demo program with restrictions to print, only view.

Thanks,

Comments

  • edited 6:56AM
    Hello,

    Set the Config.PreviewSettings.Buttons = ... (set of needed buttons)
  • edited 6:56AM
    AlexTZ wrote: »
    Hello,

    Set the Config.PreviewSettings.Buttons = ... (set of needed buttons)

    Thanks Alex, Can you give me example of use.. I can't get it right in C#, as well there is no code example of how to use this property

  • edited 6:56AM
    When you type =, you should get an intellisense hint.

    Config.PreviewSettings.Buttons = PreviewButtons.Open | PreviewButtons.Save | PreviewButtons.Find | PreviewButtons.Zoom | PreviewButtons.Outline | PreviewButtons.PageSetup | PreviewButtons.Edit | PreviewButtons.Watermark | PreviewButtons.Navigator | PreviewButtons.Close;
  • edited 6:56AM
    AlexTZ wrote: »
    When you type =, you should get an intellisense hint.

    Config.PreviewSettings.Buttons = PreviewButtons.Open | PreviewButtons.Save | PreviewButtons.Find | PreviewButtons.Zoom | PreviewButtons.Outline | PreviewButtons.PageSetup | PreviewButtons.Edit | PreviewButtons.Watermark | PreviewButtons.Navigator | PreviewButtons.Close;

    Yes, agreed, but still. How to disable/enable /visible (true/false) :-)
  • edited 6:56AM
    Johnxp wrote: »
    Johnxp wrote: »
    When you type =, you should get an intellisense hint.

    Config.PreviewSettings.Buttons = PreviewButtons.Open | PreviewButtons.Save | PreviewButtons.Find | PreviewButtons.Zoom | PreviewButtons.Outline | PreviewButtons.PageSetup | PreviewButtons.Edit | PreviewButtons.Watermark | PreviewButtons.Navigator | PreviewButtons.Close;

    Yes, agreed, but still. How to disable/enable /visible (true/false) :-)

    Plus, if I disable the print button, the user still can use Ctrl+P to print the report,
  • edited 6:56AM
    You have to indicate all buttons which you want to use in the Buttons property. There is no way to hide/show particular button.
    I will fix Ctrl+P bug.
  • edited 6:56AM
    AlexTZ wrote: »
    You have to indicate all buttons which you want to use in the Buttons property. There is no way to hide/show particular button.
    I will fix Ctrl+P bug.

    Great, I can use that way. When that change for Ctrl+P will be available?

    Thank you,
  • edited 6:56AM
    It will be available in the next build (in 12 hours).
  • edited 6:56AM
    AlexTZ wrote: »
    It will be available in the next build (in 12 hours).


    Thank you very much.

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.