Hello,
I am currently evaluating if Aspose.Words can replace our current word generation.
I ran into the following problem that cells do not get merged correctly.
The following code produces the this output: http://puu.sh/a0mHC/dfba7d9e77.png
builder.InsertCell();
builder.CellFormat.HorizontalMerge = CellMerge.First;
builder.ParagraphFormat.Alignment = ParagraphAlignment.Left;
builder.Write(Text.Subtotal(Language));
for (int i = 0; i < NumberOfColumns - 2; i++)
{
builder.InsertCell();
builder.CellFormat.HorizontalMerge = CellMerge.Previous;
}
builder.InsertCell();
builder.CellFormat.HorizontalMerge = CellMerge.None;
builder.ParagraphFormat.Alignment = ParagraphAlignment.Right;
builder.Write("900.00€");
builder.EndRow();
As you can see in the attachement there are only two columns when the cells are merged.
Now when commenting out the builder.CellFormat.HorizontalMerge = CellMerge.Previous;
line, the result looks as expected: http://puu.sh/a0mIf/c01da1a14a.png
How can I merge the the first 8 columns so that the result look equivalent to the second screen shot?
Thanks for your help
Lukas Häfliger