Avoid load error

edited 6:15PM 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 6:15PM
    What happens if you remove

    myreport.Clear;


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

Leave a Comment