Version

Create(Stream,IPackageFactory) Method

Creates and returns a new instance of a WordDocumentWriter-derived class.
Syntax
'Declaration
 
Public Overloads Shared Function Create( _
   ByVal stream As Stream, _
   ByVal packageFactory As IPackageFactory _
) As WordDocumentWriter
public static WordDocumentWriter Create( 
   Stream stream,
   IPackageFactory packageFactory
)

Parameters

stream
The System.IO.Stream to which the content is persisted.
packageFactory
An IPackageFactory implementor which handles the packaging of the output file stream.

Return Value

A reference to the WordDocumentWriter-derived instance that was created.
Requirements

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