How re-open dialog box ?

Hi

I have a raport with the dialog box. On the form i placed two buttons 'ok' (mrOk) and 'cancel' (mrCancel). After choose 'ok' i show the report
It is possible to show the dialog box again after closing of the report. And performing this action in the loop, until the button 'cancel' will not be clicked.

Fantom

Comments

  • AndriantahinaAndriantahina Madagascar
    edited 6:07PM
    flatron wrote: »
    Hi

    I have a raport with the dialog box. On the form i placed two buttons 'ok' (mrOk) and 'cancel' (mrCancel). After choose 'ok' i show the report
    It is possible to show the dialog box again after closing of the report. And performing this action in the loop, until the button 'cancel' will not be clicked.

    Fantom

    From Delphi, you can do this like that
    while (MessageDlg('Print ?', mtWarning, [mbYes, mbCancel], 0) = mrYes) do
      begin
        repManager.ShowReport(); //repManager is a TFrxreport type.
    end;
    
  • edited 6:07PM
    while (MessageDlg('Print ?', mtWarning, [mbYes, mbCancel], 0) = mrYes) do
      begin
        repManager.ShowReport(); //repManager is a TFrxreport type.
    end;
    

    But on the dialogbox i have many combo etc. I must use this dialogbox from fastreport, not from delphi.

    Fantom
  • edited 6:07PM
    Tell your enduser to do:

    1. Click Page Setting on preview,
    2. Click Apply to all pages,
    3. Click Ok.

    This should force FR Engine to rebuild the whole report and show the dialog again.
    Be carefull with this technique as sometimes it needs some tricky methods.

    Mick
  • gpigpi
    edited 6:07PM
    Also you can use TfrxMemoView.OnPreviewClick event (you may set TfrxMemoViiew.Printale to False)
    See attach
  • edited December 2011
    Any other ideas ?
    1) I don't want teach users [img]style_emoticons/<#EMO_DIR#>/sad.gif" style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> 2) second (onpreviewclick) is better,but user must click this memo. And after click Cancel, preview not closed automatically. User must click Close on preview. I'm want, that Showraport start automatic after close preview. flatron[/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.