Retrieves the ID of the report that is currently being processed.
GetReportID( IREPORTINFO_HANDLE i_hIReportInfo, long* o_reportId)
The handle of the interface. See hIReportInfo Variable.
The ID of the report or subreport.
Greater than zero if successful, zero or less if not. Use RET_OK(x) and RET_ERROR(x) to check for failure.
This function will retrieve the object ID of a report or subreport. If the intercepted request is a view request, it will retrieve the ID of the report or instance that is being viewed. If the intercepted request is a schedule request, the GetReportID function returns the ID of the scheduled object, which is in fact the parent of the generated instance. For example, if you schedule an instance based on ReportA, GetReportID returns the object ID of ReportA. If you schedule an instance based on InstanceB, GetReportID returns the object ID of InstanceB.
Crystal Decisions, Inc. http://www.crystaldecisions.com Support services: http://support.crystaldecisions.com |