Print Dialog problem

Hi,

I have this code in Delphi:

frxReport1.PrintOptions.ShowDialog := false;

This is what is global for my software, but some of my clients demand to have the Print Dialog and to see it. That's why I put this code on the report:

procedure frxRepOnStartReport(Sender: TfrxComponent);
begin
Report.PrintOptions.ShowDialog := True;
end;

The funny thing is that the Print Dialog will show when I am in design mode, but after I start the program and press the print button in preview mode there is no Print Dialog.

Please post your opinion or any solution that you might think of.

Thanks!!

Comments

  • gordkgordk St.Catherines On. Canada.
    edited 10:54AM
    your delphi code is overriding.
    i would make your choice of setting a condition of your delphi code and set it just before loading report.
  • edited 10:54AM
    I know about that and it works like that, but my point was to make client based reports without complicating my code. [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> Thanks[/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.