Is it possible to output multiple Documents using MailMerge.Execute(IdataSourceImplementation)? Consider a Document object ‘doc’ that is 1 page long with some merge fields in it.
//3 items in the datasource
exampleDataEntity ent1 = new exampleDataEntity(String "ent1");
exampleDataEntity ent2 = new exampleDataEntity(String "ent2");
exampleDataEntity ent3 = new exampleDataEntity(String "ent3");
//create the data source...
exampleDataEntityCollection myCollection = new exampleDataEntityCollection();
myCollection.add(ent1);
myCollection.add(ent2);
myCollection.add(ent3);
exampleDataSource myDataSource = new exampleDataSource(myCollection);//exampleDataSource implements IMailMergeDataSource
doc.Mailmerge.Execute(myDataSource);
doc.save(somePath);//Produces 1 document, 3 pages long.
//each page is a copy of the original 1 page document with data from one of the exampleDataEntity replacing the mergeFields.
//Is there a way to get 3 documents, each 1 page long?
Is there a way to get 3 documents, each 1 page long?