Version

Export(DataPresenterBase,Stream) Method

Exports the specified DataPresenter derived control to the specified file.
Syntax
'Declaration
 
Public Overloads Sub Export( _
   ByVal dataPresenter As DataPresenterBase, _
   ByVal stream As Stream _
) 
public void Export( 
   DataPresenterBase dataPresenter,
   Stream stream
)

Parameters

dataPresenter
The control whose records are to be exported
stream
The stream to which the Word document should be written.
Exceptions
ExceptionDescription
System.ArgumentNullExceptionThe dataPresenter and stream must be non-null values.
System.InvalidOperationExceptionThe CanWrite of the stream must be true.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, 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