ReportViewer.InteractiveDeviceInfos Property
Gets the DeviceInfoCollection object that the ReportViewer control uses to render the report in the report area as HTML.
Namespace: Microsoft.Reporting.WebForms
Assembly: Microsoft.ReportViewer.WebForms (in microsoft.reportviewer.webforms.dll)
Syntax
'Declaration
<BrowsableAttribute(False)> _
Public Property InteractiveDeviceInfos As DeviceInfoCollection
'Usage
Dim instance As ReportViewer
Dim value As DeviceInfoCollection
value = instance.InteractiveDeviceInfos
[BrowsableAttribute(false)]
public DeviceInfoCollection InteractiveDeviceInfos { get; }
[BrowsableAttribute(false)]
public:
property DeviceInfoCollection^ InteractiveDeviceInfos {
DeviceInfoCollection^ get ();
}
/** @property */
public DeviceInfoCollection get_InteractiveDeviceInfos ()
public function get InteractiveDeviceInfos () : DeviceInfoCollection
Property Value
A DeviceInfoCollection object.
Remarks
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.
Example
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")
See Also
Reference
ReportViewer Class
ReportViewer Members
Microsoft.Reporting.WebForms Namespace