I am currently evaluating the Aspose.Words 10.0 trieal…I have a very simple example with the code below. The first row should merge the 2 cells…it works if I save it out as a .docx file, but it does not work when I save it out as a .doc file.
I have Microsoft Office 2010 installed, so when I view the .doc/.docx files, it opens in Word 2010.
Any ideas/insight into this? Thanks!
Tejash
Dim doc As Document = New Document()
Dim builder As DocumentBuilder = New DocumentBuilder(doc)
builder.StartTable()
builder.InsertCell()
builder.CellFormat.Width = 100
builder.CellFormat.HorizontalMerge = CellMerge.First
builder.Write("This is merged cells")
builder.InsertCell()
builder.CellFormat.Width = 100
builder.CellFormat.HorizontalMerge = CellMerge.Previous
builder.EndRow()
builder.InsertCell()
builder.CellFormat.Width = 100
builder.CellFormat.HorizontalMerge = CellMerge.None
builder.InsertCell()
builder.CellFormat.Width = 100
builder.CellFormat.HorizontalMerge = CellMerge.None
builder.EndRow()
builder.EndTable()
doc.Save("C:\test.doc")
doc.Save("C:\test.docx")