HTML 裝置資訊設定HTML Device Information Settings

下表列出以 HTML 格式轉譯的裝置資訊設定。The following table lists the device information settings for rendering in HTML format.

重要

下表所列出帶有 (*) 的裝置資訊設定已被取代,不應在新的應用程式中使用。The device information settings listed in the table below with a (*) have been deprecated and they should not be used in new applications. 如需詳細資訊,請參閱 < SQL Server Reporting Services 中 SQL Server 2014 中已被取代的功能For more information, see Deprecated Features in SQL Server Reporting Services in SQL Server 2014.

設定Setting Value
AccessibleTablix 指出是否要使用其他可存取性中繼資料來轉譯,以搭配螢幕助讀員使用。Indicates whether to render with additional accessibility metadata for use with screen readers. 這個參數只適用於包含簡單資料表或是具有簡單群組之矩陣結構的報表。This parameter is only applicable to reports that contain simple table or matrix structures with simple grouping. 預設值是 falseThe default value is false. 其他可存取性中繼資料會使得轉譯的報表與下列文件內的技術標準相容:<Electronic and Information Technology Accessibility Standards>文件 (章節 508) 的<Web-based Intranet and Internet Information and Applications>章節 (1194.22)。The additional accessibility metadata causes the rendered report to be compliant with the following technical standards in the "Web-based Intranet and Internet Information and Applications" section (1194.22) of the Electronic and Information Technology Accessibility Standards (Section 508) document:

(g) 應該針對資料表識別資料列和資料行標頭。(g) Row and column headers shall be identified for data tables.

(h) 如果資料表具有兩個或多個邏輯層的資料列或資料行標頭,應該使用標記來讓資料格與標頭資料格產生關聯。(h) Markup shall be used to associate data cells and header cells for data tables that have two or more logical levels of row or column headers.

(i) 框架的標頭應該包含文字,該文字有助於識別框架和導覽。(i) Frames shall be titled with text that facilitates frame identification and navigation.

MicrosoftMicrosoftSharePoint Server 2010SharePoint Server 2010中支援這個參數,但 MicrosoftMicrosoft SharePoint Server 2007SharePoint Server 2007則否。This parameter is supported in MicrosoftMicrosoftSharePoint Server 2010SharePoint Server 2010, but not in MicrosoftMicrosoft SharePoint Server 2007SharePoint Server 2007.
ActionScript(*)ActionScript(*) 指定發生動作事件 (例如鑽研或書籤點擊) 時所要使用之 JavaScript 函數的名稱。Specifies the name of the JavaScript function to use when an action event occurs, such as a drillthrough or bookmark click. 如果指定這個參數,動作事件便會觸發具名 JavaScript 函數,而非回傳至伺服器。If this parameter is specified, an action event will trigger the named JavaScript function instead of a postback to the server.
BookmarkIDBookmarkID 跳到報表中的書籤識別碼。The bookmark ID to jump to in the report.
DocMapDocMap 指出是否要顯示或隱藏報表文件引導模式。Indicates whether to show or hide the report document map. 此參數的預設值為 trueThe default value of this parameter is true.
ExpandContent 指出報表是否應該包括在限制水平大小的表格結構中。Indicates whether the report should be enclosed in a table structure which constricts horizontal size.
FindStringFindString 報表中要搜尋的文字。The text to search for in the report. 這個參數的預設值為空字串。The default value of this parameter is an empty string.
GetImage (*)GetImage (*) 取得 HTML 檢視器使用者介面的特定圖示。Gets a particular icon for the HTML Viewer user interface.
HTMLFragment 指出是否建立 HTML 片段來取代完整的 HTML 文件。Indicates whether an HTML fragment is created in place of a full HTML document. HTML 片段會在 TABLE 元素中包含報表內容,並省略 HTML 和 BODY 元素。An HTML fragment includes the report content in a TABLE element and omits the HTML and BODY elements. 預設值是 falseThe default value is false. 轉譯時使用含有將 HTMLFragment 屬性設定為 true 的 SOAP,會建立包含工作階段的資訊,這些資訊可用以正確地要求影像。Rendering using SOAP with the HTMLFragment property set to true creates URLs containing session information that can be used to properly request images. 影像必須是報表伺服器資料庫中上傳的資源。The images must be uploaded resources in the report server database.
ImageConsolidation 指出是否要將轉譯的圖表、地圖、量測計和指標影像合併成一個大型影像。Indicates whether to consolidate the rendered chart, map, gauge, and indicator images into one large image. 當報表包含許多資料視覺效果項目時,影像的合併有助於改良用戶端瀏覽器中報表的效能。The consolidation of images helps improve the performance of the report in the client browser when the report contains many data visualization items. 對於大多數最新型的瀏覽器而言,預設值為 trueThe default value is true for most modern browsers.
JavaScriptJavaScript 指出在轉譯的報表中是否支援 JavaScript。Indicates whether JavaScript is supported in the rendered report. 預設值是 trueThe default value is true.
LinkTarget 報表中超連結的目標。The target for hyperlinks in the report. 您可以藉由提供視窗中,名稱,例如目標視窗或框架LinkTarget = window_name,或您可以針對新的視窗使用LinkTarget= _blank。You can target a window or frame by providing the name of the window, like LinkTarget=window_name, or you can target a new window using LinkTarget=_blank. 其他有效的目標名稱包括 _self, _parent, and _top。Other valid target names include _self, _parent, and _top.
OnlyVisibleStyles(*)OnlyVisibleStyles(*) 指出只會產生目前轉譯頁面的共用樣式。Indicates that only shared styles for currently rendered page are generated.
OutlookCompat 指出是否要使用額外中繼資料轉譯,讓報表在 Outlook 中有較佳的外觀。Indicates whether to render with extra metadata that makes the report look better in Outlook. 對於其他人,預設值為 falseFor others, the default value is false.
參數Parameters 指出是否要顯示或隱藏工具列的參數區。Indicates whether to show or hide the parameters area of the toolbar. 如果將這個參數設定為 true 的值,就會顯示工具列的參數區域。If you set this parameter to a value of true, the parameters area of the toolbar is displayed. 此參數的預設值為 trueThe default value of this parameter is true.
PrefixId 搭配 HTMLFragment 使用時,會在已建立的 HTML 片段中的所有 ID 屬性加入指定的前置詞。When used with HTMLFragment, adds the specified prefix to all ID attributes in the HTML fragment that is created.
ReplacementRoot(*)ReplacementRoot(*) 在 ReportViewer 控制項之外轉譯時,在報表中所有鑽研、切換和書籤連結之前附加的字串。The string to prepend to all drillthrough, toggle, and bookmark links in the report when rendered outside of the ReportViewer control. 例如,這個字串可用來將使用者的按鍵動作重新導向至自訂網頁。For example, this is used for redirecting a user's click to a custom page.
ResourceStreamRoot(*)ResourceStreamRoot(*) 所有影像資源 (例如切換或排序的影像) 的 URL 前面所要加上的字串。The string to prepend to the URL for all image resources, such as images for toggle or sort.
章節Section 要轉譯之報表的頁碼。The page number of the report to render. 0 的值表示轉譯報表的所有區段。A value of 0 indicates that all sections of the report are rendered. 預設值是 1The default value is 1.
StreamRoot (*)StreamRoot (*) 這個路徑會加在報表伺服器傳回的 HTML 報表中的 IMG 元素之 src 屬性值前面。The path used for prefixing the value of the src attribute of the IMG element in the HTML report returned by the report server. 依預設,報表伺服器會提供路徑。By default, the report server provides the path. 您可以使用此設定為在報表中的影像指定根路徑 (例如,http://<伺服器名稱>/resources/companyimages)。You can use this setting to specify a root path for the images in a report (for example, http://<servername>/resources/companyimages).
StyleStreamStyleStream 指出是否將樣式和指令碼建立成不同的資料流,而不是在文件中。Indicates whether styles and scripts are created as a separate stream instead of in the document. 預設值是 falseThe default value is false.
Toolbar 指出是否要顯示或隱藏工具列。Indicates whether to show or hide the toolbar. 這個參數的預設值為 trueThe default of this parameter is true. 如果這個參數的值為 false,則會忽略所有剩餘的選項 (文件引導模式除外)。If the value of this parameter is false, all remaining options (except the document map) are ignored. 如果您省略這個參數,工具列就會自動顯示以轉譯支援該參數的格式。If you omit this parameter, the toolbar is automatically displayed for rendering formats that support it.

當您使用 URL 存取來轉譯報表時,會轉譯報表檢視器工具列。The Report Viewer toolbar is rendered when you use URL access to render a report. 工具列不是透過 SOAP API 來轉譯。The toolbar is not rendered through the SOAP API. 不過,Toolbar 裝置資訊設定會影響使用 SOAP Render 方法時顯示報表的方式。However, the Toolbar device information setting affects the way that the report is displayed when using the SOAP Render method. 如果此參數值在使用 SOAP 轉譯為 HTML 時為 true,則會轉譯報表的第一個區段。If the value of this parameter is true when using SOAP to render to HTML, only the first section of the report is rendered. 如果值是 false,則會將整個 HTML 報表轉譯為單一 HTML 頁面。If the value is false, the entire HTML report is rendered as a single HTML page.
UserAgent 提出要求之瀏覽器的 user-agent 字串,該字串可在 HTTP 要求中找到。The user-agent string of the browser that is making the request, which is found in the HTTP request.
Zoom (*)Zoom (*) 報表縮放值,以整數百分比或字串常數表示。The report zoom value as an integer percentage or a string constant. 標準字串值包括 Page WidthWhole PageStandard string values include Page Width and Whole Page. Internet Explorer 5.0 之前的 MicrosoftMicrosoft Internet Explorer 版本和所有非MicrosoftMicrosoft 瀏覽器都會忽略這個參數。This parameter is ignored by versions of MicrosoftMicrosoft Internet Explorer earlier than Internet Explorer 5.0 and all non-MicrosoftMicrosoft browsers. 此參數的預設值為 100The default value of this parameter is 100.
DataVisualizationFitSizingDataVisualizationFitSizing 指示資料在 Tablix 內的視覺效果調整行為。Indicates data visualization fit behavior when inside a tablix. 其中包括圖表、量測計和地圖。This includes chart, gauge, and map.

可能的值為 [近似][精確]The possible values are Approximate and Exact.

預設值為 [近似]The default value is Approximate. 如果從 rsreportserver.config 檔案中移除此設定,則預設行為是 [精確]If the setting is removed from the rsreportserver.config file then the default behavior is Exact.

啟用 [精確] 可能會影響效能,因為判斷精確大小的處理所花的時間可能會比較長。Enabling Exact may have performance impact because the processing to determine the exact size may take longer.

另請參閱See Also

將裝置資訊設定傳遞至轉譯延伸模組 Passing Device Information Settings to Rendering Extensions
在 RSReportServer.Config 中自訂轉譯延伸模組參數 Customize Rendering Extension Parameters in RSReportServer.Config
技術參考 (SSRS)Technical Reference (SSRS)