Muokkaa

Jaa


Specify device information settings in a URL

Device information settings are parameters that are passed to a rendering extension. If you use the methods of the SQL Server Report Server Web service to render a report, a DeviceInfo XML element is passed as an input parameter. Child elements of the DeviceInfo element are specific to the device information settings of different rendering extensions. You can include device information settings in a URL by using the rc:tag=value parameter string, where tag is the name of the device information settings element being accessed. For more information about device information settings in SQL Server Reporting Services, see Pass device information settings to rendering extensions.

Example

The following example sets the format of the specified report to JPEG by using the OutputFormat device information setting of the image rendering extension (the line breaks in this example are for legibility):

https://servername/reportserver?/SampleReports  
/Employee Sales Summary&EmployeeID=38&rs:  
Command=Render&rs:Format=IMAGE&rc:OutputFormat=JPEG