PrintReport

ACCPAC Common Controls

AccpacReport.PrintReport

Prints a report to the printer, to a file, to email, or to the preview screen, depending on the value of the Destination property.

Function PrintReport() As Boolean

Return Value

Returns whether a web-based report was generated.

Remarks

If the return value is TRUE, a web-based report was generated. This type of report is generated when the current session is accessing a remote ACCPAC application server. In this case, applications should access the WebReportURL property (which stores the URL where the report can be retrieved) and display the report accordingly.

If the return value is FALSE, the session is in-process to the caller, and the report has been printed to the desired destination.

Remarks

For reports that include parameters, make sure that SetParam calls have been made before calling PrintReport.