Device Information Settings
Device information settings in Reporting Services are used to pass rendering parameters to a rendering extension. Those in the Reporting Services Web service are passed as a DeviceInfo XML element and processed by the report server. Those using URL access are passed as URL parameters. Because device information settings have default values, they are considered optional arguments in the rendering process. However, you can use device information settings to customize rendering and to override the default values that are supplied by the server.
Passing Device Information Using the Render Method
You can pass device information settings to a rendering extension when rendering a report using the Web service method Render. The following XML string can be passed to the Render method to create an HTML fragment when rendering to HTML.
<DeviceInfo>
<Toolbar>False</Toolbar>
<HTMLFragment>True</HTMLFragment>
</DeviceInfo>
When a report is rendered as an HTML fragment, the content of the report is contained within a TABLE element without the use of an HTML or BODY element. You can use the HTML fragment to incorporate the report in an existing HTML document. For more information about the Render method, see Render Method. For more information about device information settings for HTML output, see HTML Device Information Settings.
Passing Device Information Using URL Access
You can also pass device information settings through URL access. The following URL access string can be passed to the report server to create an HTML fragment.
http://servername/reportserver?/SampleReports/Sales Order Detail&rs:Command=Render&rc:Format=HTML4.0&rc:Toolbar=False&rc:HTMLFragment=True
For more information, see Specifying Device Information Settings on a URL.
The following topics provide a detailed list of the device information settings that are used with the available rendering extensions in Reporting Services.
See Also
Reporting Services Web Service Library
ReportingService.Render Method