Właściwość ReportViewer.InteractiveDeviceInfos —
Gets the DeviceInfoCollection object that the ReportViewer control uses to render the report in the report area as HTML.
Przestrzeń nazw: Microsoft.Reporting.WebForms
Zestaw: Microsoft.ReportViewer.WebForms (w Microsoft.ReportViewer.WebForms.dll)
Składnia
'Deklaracja
<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)
Wartość właściwości
Typ: Microsoft.Reporting.WebForms.DeviceInfoCollection
A DeviceInfoCollection object.
Uwagi
You can add or remove device information settings in the InteractiveDeviceInfos property to specify how the report should be rendered in the report area. Device information settings in the property applies apply only to the report that is rendered in the report area. It doesThey do not apply to the Export function in the ReportViewer user interface. For example, it doesthey do not apply to a server report that you export in MHTML format using the Export user interface.
Certain device information settings, such as PrefixId and HTMLFragment, are set by the ReportViewer control and cannot be overridden, and certain settings can be set directly through member properties or methods in the ReportViewer control. For example, the Section setting can be set using the CurrentPage property, and the LinkTarget setting can be set using the HyperlinkTarget. If you try to add such settings to the collection, the ReportViewer control throws an ArgumentException. For more information, see HTML Device Information Settings.
Przykłady
The following example adds the AccessibleTablix device information to the InteractiveDeviceInfos collection in order to generate additional HTML mark-up for tablices in rendered reports.
this.ReportViewer1.InteractiveDeviceInfos.Add("AccessibleTablix", "true");
Me.ReportViewer1.InteractiveDeviceInfos.Add("AccessibleTablix", "true")