- Your input Word document
- Please attach the output Word file that shows the undesired behavior.
- Please create a standalone console application (source code without compilation errors) that helps us reproduce your problem on our end and attach it here for testing.
Document doc = new Document(MyDir + "in.docx");
DocumentBuilder Builder = new DocumentBuilder(doc);
doc.Unprotect();
Builder.Writeln("Hello World!");
Builder.MoveToBookmark("bktabletest");
Builder.Font.Name = "Arial";
Builder.Font.Size = 9;
Builder.StartTable();
Builder.CellFormat.Borders.Bottom.LineStyle = LineStyle.Hairline;
Builder.CellFormat.Borders.Top.LineStyle = LineStyle.Hairline;
Builder.CellFormat.Borders.Left.LineStyle = LineStyle.Hairline;
Builder.CellFormat.Borders.Right.LineStyle = LineStyle.Hairline;
Builder.CellFormat.Borders.Color = Color.LightGray;
Builder.InsertCell();
Builder.CellFormat.Shading.BackgroundPatternColor = Color.White;
Builder.CellFormat.Width = 175;
Builder.CellFormat.VerticalAlignment = CellVerticalAlignment.Center;
Builder.Write("Cell3");
Builder.InsertCell();
Builder.CellFormat.Shading.BackgroundPatternColor = Color.White;
Builder.CellFormat.Width = 30;
Builder.CellFormat.VerticalAlignment = CellVerticalAlignment.Center;
Builder.Write("Cell4");
Builder.EndRow();
Builder.EndTable();
doc.Save(MyDir + "Out.doc");
doc.Save(MyDir + "Out.docx");
meenalp:
As our end users, require documents solely in ".doc" format.Can you suggest another way around, for this issue ?
meenalp:
But, it did not work in case of our actual code. ... use version Aspose.Words 7.0.0.0 in our actual code.