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