Avoid load error

edited 5:13PM in FastReport 4.0
I have my report loaded by values (not from database), however, sometime users
Enters wrong values or empty values, then click view, the users gets not valid error message and
Gets error screen popup, he must close the program to get rid of that screen.
I tried
try
myreport.LoadFromFile( ???reportfile.rp3???);
except
myreport.Clear;
end;
Any idea on how to avoid this error.

Thanks

Comments

  • Anu de DeusAnu de Deus Hampshire, UK
    edited 5:13PM
    What happens if you remove

    myreport.Clear;


    and leave the Except..End block empty?
  • gordkgordk St.Catherines On. Canada.
    edited 5:13PM
    and further you should be doing your error checking where you are inputting the data.

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.