DocumentAssemblerAssembleDocument Method (Stream, Stream, DataSourceInfo) |
Loads a template document from the specified source stream, populates the template document with data from
the specified single or multiple sources, and stores the result document to the target stream using default
LoadSaveOptions.
Namespace:
GroupDocs.Assembly
Assembly:
GroupDocs.Assembly (in GroupDocs.Assembly.dll) Version: 22.2
Syntaxpublic bool AssembleDocument(
Stream sourceStream,
Stream targetStream,
params DataSourceInfo[] dataSourceInfos
)
Public Function AssembleDocument (
sourceStream As Stream,
targetStream As Stream,
ParamArray dataSourceInfos As DataSourceInfo()
) As Boolean
public:
bool AssembleDocument(
Stream^ sourceStream,
Stream^ targetStream,
... array<DataSourceInfo^>^ dataSourceInfos
)
member AssembleDocument :
sourceStream : Stream *
targetStream : Stream *
dataSourceInfos : DataSourceInfo[] -> bool
Parameters
- sourceStream
- Type: System.IOStream
The stream to read a template document from. - targetStream
- Type: System.IOStream
The stream to write a result document. - dataSourceInfos
- Type: GroupDocs.AssemblyDataSourceInfo
Provides information on data source objects to be used.
Return Value
Type:
Boolean
A flag indicating whether parsing of the template document was successful. The returned flag makes sense only if
a value of the
Options property includes the
InlineErrorMessages
option.
See Also