在 URL 中指定裝置資訊設定Specify Device Information Settings in a URL

裝置資訊設定是傳遞給轉譯延伸模組的參數。Device information settings are parameters that are passed to a rendering extension. 如果您使用 SQL ServerSQL Server 報表伺服器 Web 服務的方法來轉譯報表,則會將 DeviceInfo XML 元素以輸入參數來傳遞。If you use the methods of the SQL ServerSQL Server Report Server Web service to render a report, a DeviceInfo XML element is passed as an input parameter. DeviceInfo\ 元素的子元素是不同的轉譯延伸模組的裝置資訊設定所特有的。Child elements of the DeviceInfo element are specific to the device information settings of different rendering extensions. 您可以使用 rc:tag=value 參數字串,來包括 URL 中的裝置資訊設定,其中 tag 是要存取之裝置資訊設定元素的名稱。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. 如需 SQL ServerSQL Server Reporting ServicesReporting Services中裝置資訊設定的詳細資訊,請參閱 將裝置資訊設定傳遞至轉譯延伸模組For more information about device information settings in SQL ServerSQL Server Reporting ServicesReporting Services, see Passing Device Information Settings to Rendering Extensions.

範例Example

下列範例使用影像轉譯延伸模組的 OutputFormat 裝置資訊來設定,以將指定報表的格式設定為 JPEG (已加入分行符號以利閱讀):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 have been added for legibility):

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

另請參閱See Also

URL 存取 (SSRS) URL Access (SSRS)
URL 存取參數參考URL Access Parameter Reference