Share via


ReportViewer.InteractiveDeviceInfos 屬性

取得 DeviceInfoCollection 物件,ReportViewer 控制項使用這個物件,將報表區域中的報表轉譯為 HTML。

命名空間:  Microsoft.Reporting.WebForms
組件:  Microsoft.ReportViewer.WebForms (在 Microsoft.ReportViewer.WebForms.dll 中)

語法

'宣告
<BrowsableAttribute(False)> _
Public Property InteractiveDeviceInfos As DeviceInfoCollection
[BrowsableAttribute(false)]
public DeviceInfoCollection InteractiveDeviceInfos { get; private set; }
[BrowsableAttribute(false)]
public:
property DeviceInfoCollection^ InteractiveDeviceInfos {
    DeviceInfoCollection^ get ();
    private: void set (DeviceInfoCollection^ value);
}
[<BrowsableAttribute(false)>]
member InteractiveDeviceInfos : DeviceInfoCollection with get, private set
function get InteractiveDeviceInfos () : DeviceInfoCollection
private function set InteractiveDeviceInfos (value : DeviceInfoCollection)

屬性值

類型:Microsoft.Reporting.WebForms.DeviceInfoCollection
DeviceInfoCollection 物件。

備註

您可以在 InteractiveDeviceInfos 屬性中加入或移除裝置資訊設定,以指定報表區域中轉譯報表的方式。這個屬性中的裝置資訊設定只適用於報表區域中轉譯的報表。這些設定不適用於 ReportViewer 使用者介面中的 [匯出] 功能。例如,這些設定不適用於使用 [匯出] 使用者介面以 MHTML 格式匯出的伺服器報表。

有些裝置資訊設定 (例如 PrefixId 和 HTMLFragment) 是由 ReportViewer 控制項設定且無法覆寫,有些設定則可以透過 ReportViewer 控制項中的成員屬性或方法直接設定。例如,Section 設定可使用 CurrentPage 屬性來設定,而 LinkTarget 設定可使用 HyperlinkTarget 來設定。如果您嘗試將這類設定加入至集合,ReportViewer 控制項會擲回 ArgumentException。如需詳細資訊,請參閱 HTML Device Information Settings

範例

下列範例會將 AccessibleTablix 裝置資訊加入至 InteractiveDeviceInfos 集合,以便在轉譯的報表中為 Tablix 產生其他 HTML 標記。

this.ReportViewer1.InteractiveDeviceInfos.Add("AccessibleTablix", "true");
Me.ReportViewer1.InteractiveDeviceInfos.Add("AccessibleTablix", "true")

請參閱

參考

ReportViewer 類別

Microsoft.Reporting.WebForms 命名空間