DocumentAssemblerAssembleDocument Method (String, String, DataSourceInfo) |
Loads a template document from the specified source path, populates the template document with data from
the specified single or multiple sources, and stores the result document to the target path using default
LoadSaveOptions.
Namespace:
GroupDocs.Assembly
Assembly:
GroupDocs.Assembly (in GroupDocs.Assembly.dll) Version: 22.2
Syntaxpublic bool AssembleDocument(
string sourcePath,
string targetPath,
params DataSourceInfo[] dataSourceInfos
)
Public Function AssembleDocument (
sourcePath As String,
targetPath As String,
ParamArray dataSourceInfos As DataSourceInfo()
) As Boolean
public:
bool AssembleDocument(
String^ sourcePath,
String^ targetPath,
... array<DataSourceInfo^>^ dataSourceInfos
)
member AssembleDocument :
sourcePath : string *
targetPath : string *
dataSourceInfos : DataSourceInfo[] -> bool
Parameters
- sourcePath
- Type: SystemString
The path to a template document to be populated with data. - targetPath
- Type: SystemString
The path to 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