ExecuteWithRegions adds extra characters to merged fields

If you execute the following code against a very simple merge document (attached) certain characters get duplicated in the output:


Code:

private void button2_Click(object sender, EventArgs e)
{
string path = @“C:\Projects\Current\Aspose Bug\Bug\Bug”;
string testDoc = “Test2.doc”;
string outDoc = “TestOut2.doc”;
DataTable dt = new DataTable(“Drug”);
dt.Columns.Add(“Dosage”, typeof(String));
dt.Rows.Add(new Object[] { “5%;” });
dt.Rows.Add(new Object[] { “%;” });
dt.Rows.Add(new Object[] { “;” });
dt.Rows.Add(new Object[] { “5;” });
dt.Rows.Add(new Object[] { “4%;” });
dt.Rows.Add(new Object[] { “4%;4%;4%;4%;” });
dt.Rows.Add(new Object[] { “5+;” });
dt.Rows.Add(new Object[] { “5_;” });
dt.Rows.Add(new Object[] { “5a;” });
dt.Rows.Add(new Object[] { “5%:” });
dt.Rows.Add(new Object[] { “5%x” });
Document doc = new Document(path + testDoc);
doc.MailMerge.ExecuteWithRegions(dt);
doc.Save(path + outDoc);
}

The output document contains:

5%;;
%;
;
5;
4%;;
4%;;4%;4%;4%;
5+;;
5_;;
5a;
5%::
5%x

Note how certain punctuation characters are doubled in the output in lines 1, 5,6,7, 8, and 10.

I executed this using the latest available version (9.4.1)

All of our exports now have these extra characters floating around. This is obviously bad. Is there a fix on the way or am I doing something wrong?

Thanks
Dennis


Dear Dennis,

Thank you for the problem reporting.

I have reproduced described issue on my side.
Your request has been linked to the appropriate record in our defect tracking system. You will be notified as soon as it is resolved.

Yours sincerely,
Svetlana Dzhura
Developer/Technical Support

The issues you have found earlier (filed as WORDSNET-4015) have been fixed in this .NET update and in this Java update.


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