Cancel Button in Dialogue Forms

Hi Alex,

to show our reports we create a new form which contains your preview control.

First our reports present a dialog to enter filter criteria.
If the user decides to press the cancel button instead of entering criterias
the preview control shows an empty report.

Is it possible to change this behavior and to close the new form?

Best Regards
Claus

Comments

  • edited 9:17PM
    Hello Claus,

    Do this:

    if (report.Prepare())
    report.ShowPrepared();
    else
    {
    // report was cancelled, close your form
    }

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.