bmason
1
Horizontal cell merging doesn't seem to work when I export the document to pdf.
The code I am using is:
|
|
DocumentBuilder bld = new DocumentBuilder(doc); bld.StartTable(); bld.InsertCell(); bld.Write("cell 1"); bld.InsertCell(); bld.Write("cell 2"); bld.EndRow(); bld.InsertCell(); bld.CellFormat.HorizontalMerge = CellMerge.First; bld.Write("Lorem ipsum dolor sit amet, consectetuer adipiscing elit."); bld.InsertCell(); bld.CellFormat.HorizontalMerge = CellMerge.Previous; bld.EndRow(); bld.CellFormat.HorizontalMerge = CellMerge.None; bld.InsertCell();
bld.Write("cell 4"); bld.InsertCell(); bld.Write("cell 5"); bld.EndRow(); bld.EndTable();
|
This works perfectly for the word doc, but not for pdf.
Thanks.
romank
2
We are working on export of merged cells right now, the release will be out in the next 2-3 days.
romank
3
Aspose.Word 2.1.11 is out that supports merged cells when exporting to HTML and PDF, for more info see Work with Columns and Rows in C#|Aspose.Words for .NET