Aspose.Words Finish and Merge

How to set datasource for a Aspose generated word document. Currently we use ActiveX to create a datasource on the client and inject that into Word.

@swamisankaran Do you mean specifying mail merge data source? If so, you can set it using
MailMergeSettings class.
If you need to fill the template with data using Aspose.Words, then there are two options:

  1. Mail Merge.
  2. LINQ Reporting Engine.
1 Like

Is the ArtifactsDir a specific location on the client ?

@swamisankaran Yes, ArtifactsDir is a local folder.

On the client or the server

@swamisankaran When you specify MailMergeSettings.DataSource, the specified data source file shout be availabe on the machine where the document will be consumed.