Partager via


Classe ReportViewer

Encapsule les méthodes et les propriétés utilisées pour le contrôle ReportViewer.

Espace de noms: Microsoft.Reporting.WebForms
Assembly: Microsoft.ReportViewer.WebForms (dans microsoft.reportviewer.webforms.dll)

Syntaxe

'Déclaration
<SRDescriptionAttribute("ReportViewerDescription")> _
<ParseChildrenAttribute(True)> _
<DesignerAttribute("Microsoft.Reporting.WebForms.ReportViewerDesigner, Microsoft.ReportViewer.WebDesign, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")> _
<PersistChildrenAttribute(False)> _
Public Class ReportViewer
    Inherits CompositeControl
    Implements IPostBackEventHandler
'Utilisation
Dim instance As ReportViewer
[SRDescriptionAttribute("ReportViewerDescription")] 
[ParseChildrenAttribute(true)] 
[DesignerAttribute("Microsoft.Reporting.WebForms.ReportViewerDesigner, Microsoft.ReportViewer.WebDesign, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] 
[PersistChildrenAttribute(false)] 
public class ReportViewer : CompositeControl, IPostBackEventHandler
[ParseChildrenAttribute(true)] 
[DesignerAttribute(L"Microsoft.Reporting.WebForms.ReportViewerDesigner, Microsoft.ReportViewer.WebDesign, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] 
[PersistChildrenAttribute(false)] 
public ref class ReportViewer : public CompositeControl, IPostBackEventHandler
/** @attribute SRDescriptionAttribute("ReportViewerDescription") */ 
/** @attribute ParseChildrenAttribute(true) */ 
/** @attribute DesignerAttribute("Microsoft.Reporting.WebForms.ReportViewerDesigner, Microsoft.ReportViewer.WebDesign, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a") */ 
/** @attribute PersistChildrenAttribute(false) */ 
public class ReportViewer extends CompositeControl implements IPostBackEventHandler
SRDescriptionAttribute("ReportViewerDescription") 
ParseChildrenAttribute(true) 
DesignerAttribute("Microsoft.Reporting.WebForms.ReportViewerDesigner, Microsoft.ReportViewer.WebDesign, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a") 
PersistChildrenAttribute(false) 
public class ReportViewer extends CompositeControl implements IPostBackEventHandler

Remarques

Ce contrôle affiche le rapport et l'interface utilisateur associée. Au moment de la conception, l'aspect du contrôle peut afficher une zone de paramètres, un plan de document vide, une barre d'outils et une zone de rapport.

Le contrôle peut être utilisé en mode de traitement local ou distant. En mode de traitement local, le contrôle traite et rend le rapport en local. En mode de traitement distant, le traitement est effectué sur un serveur de rapports et est affiché localement. Ce mode nécessite une instance Microsoft SQL Server 2005 du serveur de rapports.

[!REMARQUE] Pour plus d'informations sur l'utilisation du contrôle de serveur Web ReportViewer dans une batterie de serveurs Web ou sans état de session, consultez Web.config Settings for ReportViewer.

Hiérarchie d'héritage

System.Object
   System.Web.UI.Control
     System.Web.UI.WebControls.WebControl
       System.Web.UI.WebControls.CompositeControl
        Microsoft.Reporting.WebForms.ReportViewer

Sécurité des threads

Tous les membres statiques publics (Shared dans Visual Basic) de ce type sont thread-safe. Il n'existe aucune garantie que les membres de l'instance soient thread-safe.

Voir aussi

Référence

Membres ReportViewer
Espace de noms Microsoft.Reporting.WebForms