The AbortReport method is for stopping the report generator.
All scripts are aborted, and the
ExtraFiles are not written either. The AbortReport method
does not not display any error to the user. To display an error to the
user, use the method
You may use the AbortReport method if you encounter an
error important enough to stop the report generator. For instance, your
report may require a custom component or mandatory file, and if that component
and/or file is missing, then the report cannot be generated.
The method AbortReport is a method of the
object rather than being a method of the
object. After all, it would make more sense to use
rather than Report.AbortReport. The rationale of this design
decision is for consistency with the methods AbortPage and
and for future growth. In the future, a single
object may have many Report objects running
simultaneously. By having the method AbortReport part of the
report stream, it is possible to locate which script aborted the report and
perform additional processing.