Free Support Forum - aspose.com

Export to pdf of horizontal cell merge

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.

We are working on export of merged cells right now, the release will be out in the next 2-3 days.

Aspose.Word 2.1.11 is out that supports merged cells when exporting to HTML and PDF, for more info see http://aspose.com/blogs/Roman.Korchagin/archive/2005/02/21/527.aspx