How do you disable a Page from printing?

edited January 2015 in FastReport VCL 5
How do you disable a Page from printing from script?

I tried this code and the page still prints:

Page is called CustomData and the Event is the OnBeforePrint event of the CustomData page.
procedure CustomDataOnBeforePrint(Sender: TfrxComponent);
begin
  CustomData.Visible:= False;
end;

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 12:39PM
    To late the page has already started to process
    do it in the
    empty begin end block at the bottom of the page it's procesased first

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.