次の方法で共有


ReportViewer.InteractiveDeviceInfos プロパティ

ReportViewer コントロールがレポート領域に HTML でレポートを表示するときに使用する DeviceInfoCollection オブジェクトを取得します。

名前空間:  Microsoft.Reporting.WebForms
アセンブリ:  Microsoft.ReportViewer.WebForms (Microsoft.ReportViewer.WebForms.dll)

構文

'宣言
<BrowsableAttribute(False)> _
Public Property InteractiveDeviceInfos As DeviceInfoCollection
    Get
    Private Set
'使用
Dim instance As ReportViewer
Dim value As DeviceInfoCollection

value = instance.InteractiveDeviceInfos
[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」を参照してください。

使用例

次の例では、表示対象レポートに含まれる Tablix の HTML マークアップを追加で生成するために、InteractiveDeviceInfos コレクションに AccessibleTablix デバイス情報を追加しています。

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

関連項目

参照

ReportViewer クラス

Microsoft.Reporting.WebForms 名前空間