short PrintReport(long QueryID, short SourceType, BSTR Source, BSTR OutputFileName, short PageLength, short PageWidth, BOOLEAN IncludeDateTime, BOOLEAN IncludePageNumbers, [VARIANT Format], [VARIANT UseFormPageSetup])
Description
PrintReport() is a synonym for the ExportReport() function.
Return Value
Return value will be zero if successful or non-zero if unsucessful. If the return value is non-zero, you can call GetLastErrorString(), GetLastErrorType(), GetLastSQLCode(), GetLastSQLError(), or GetLastSQLState() to get additional error information.
Related Tasks