Needste mail merge - next update

Hi

I’am still testing your program aspose.Word but I am in trouble.

1. When du you expect to support nested mail merge. We realy need it.

Example
I have a list of persons and for each person there are a list of courses. I can not make that whit out nested mail merge.

My error
Found mail merge region ‘User’ nested in another mail merge region ‘Participant’. Nested mail merge regions are not yet supported.

My Word document - Example
?TableStart:Participant? <-- START 1

?Surname? ?LastName?
?SecruityNumber?

?TableStart:User? <-- START 2
?Surname? ?LastName?

?Email?
?Phone?
?TableEnd:User? <-- END 2

?coAddress?
?Address?
?PostalcodeID? ?PostalDistrict?
?Phonenumber?
?Mobilenumber?
?TableEnd:Participant? <-- END 1

MyCode - It says nothing but only illustrate that I use DataSet
public Document Letter1(int param_sectionID, int param_participantID, int param_userID)
{
// Samme som 4 blot et andet dokument
DataSet dataSet = new DataSet();
dataSet.Tables.Add(FromDB_Participant(param_participantID));
dataSet.Tables.Add(FromDB_User(param_userID));
dataSet.Tables.Add(GetSection(param_sectionID));
Document doc = OpenDoc(@“Brev1.doc”);
doc.MailMerge.MergeField += new MergeFieldEventHandler(HandleFormat);
doc.MailMerge.ExecuteWithRegions(dataSet);
return doc;
}

2.
When do you expect next release.

Best Regards
Thomas

Hi Thomas,

We will look into support of nested merge regions, but we can only do this sometime in July.

There is a way to do what you want now, but you need to use DocumentBuilder and a bit more programming.

See this thread where we discuss exactly the same question https://forum.aspose.com/t/130334. Just skip to the 4th or 5th reply and see there are some ideas suggested there.

The issues you have found earlier (filed as 39) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(31)