ActiveReports.Viewer3 Request technical support
Dispose Method
See Also 


Releases the Document instance from memory.

Syntax

Visual Basic (Declaration) 
Public Sub Dispose() 
Visual Basic (Usage)Copy Code
Dim instance As Document
 
instance.Dispose()
C# 
public void Dispose()

Remarks

Calling Dispose() on the Document object disposes of all objects contained in that Document object.  Therefore, it is necessary to remove any items which will still need to be used prior to calling the Dispose() method.  Similarly, to obtain access to any Pages in the Document object's Pages collection, those Pages need to be removed from the Pages collection prior to calling the Dispose() method of the Document object.

See Also