Hello,
Problem in colspan while converting HTML to doc file.
If you have colspan = "4" then when you are converting to doc it contains 4 repeated records , same like if you have given colspan ="2" then two repeated records are there.
i have searched in aspose forum to find out the solution and i got the below code to solve the issue ,
NodeCollection cells = doc.GetChildNodes(NodeType.Cell, true);<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
foreach (Cell cell in cells)
{
// Check whether cell is merged with previouse.
if (cell.CellFormat.HorizontalMerge == CellMerge.Previous ||
cell.CellFormat.VerticalMerge == CellMerge.Previous)
{
// Remove content from the cell.
cell.RemoveAllChildren();
}
}
but i have one problem with this , i am getting the HTML values from database ans storing it in the string variable , so in that condition i cannot use the above code.
I am using aspose 6.6, is that solved in new version?
pleas help!!