Share via


Using the Report Class for a Delivery Extension

The Report class represents a report in the report server database. Any subscription is associated with a specific report. The report is contained in the notification. Your delivery extension can use the Report object that is part of the notification to render the report. The Report object also contains report-specific properties, such as the URL to the report on the report server and the name of the report. These properties can all be used as part of your delivery provider.

The Render method of the Report class can be used to render a report. The Render method returns an array of one or more RenderedOutputFile objects that together comprise a single rendered report. The first RenderedOutputFile object is the rendered report. Any other RenderedOutputFile objects are resources that must be delivered along with the report data (for example, an HTML file and associated images). Rendering extensions that are single-stream rendering extensions (IMAGE, PDF, MHTML, and Excel) return only one RenderedOutputFile object in the array.

The RenderedOutputFile object, which contains the report stream, can be included as part of a delivery.

For an example of how to use the Report class, see SQL Server Reporting Services Product Samples