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
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
Do this:
if (report.Prepare())
report.ShowPrepared();
else
{
// report was cancelled, close your form
}