>When I give the command
>
>REPORT FORM test.frx TO PRINTER PROMPT
>
>I get a messagebox that says "An Error Occurred." It is being trapped by VFP, not my error handler. I have re-written the reports. I thought maybe it was the reportlistener object I created. So I have tried and tried, but every now and again I get that error. Sometimes I will also get the error message out of memory. Yet if I run the same report to the screen it works everytime no errors.
>
>REPORT FORM test.frx TO PREVIEW
>
>Has anyone else experienced this?
>
>Thanks,
>Dale
You need to use TRY...CATCH to catch errors in reports.