ActiveReports 8
Document Property
See Also  Example
GrapeCity.ActiveReports.Viewer.Win.v8 Assembly > GrapeCity.ActiveReports.Viewer.Win Namespace > Viewer Class : Document Property

Glossary Item Box

Gets or sets the Active Reports document to be displayed on the Viewer control.


Visual Basic (Declaration) 
Public Property Document As SectionDocument
public SectionDocument Document {get; set;}

Property Value

Document value that represents the document currently displayed on the Viewer.


C#Copy Code
private void Form1_Load(object sender, System.EventArgs e)
    ResourceManager res = new ResourceManager("rptLocalize.localization", this.GetType().Assembly);    
    this.viewer1.Localize = res;    
    rptLocalize rpt = new rptLocalize();    
    viewer1.Document = rpt.Document;    
VB.NETCopy Code
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load        
    Dim res As New ResourceManager("rptLocalize.localization", Me.GetType().Assembly)        
    Me.Viewer1.Localize = res        
    Dim rpt As New rptLocalize()        
    Viewer1.Document = rpt.Document        
End Sub


Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also