Hi,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
We have designed an application which will generate a report in word document using Aspose.word.
We are saving the document as “finalDocument.Save(_mcsStatusReportOutput,SaveFormat.Doc);”
When we open the document where 2007/2010 word is installed it is displaying properly I mean the format what we diesgned looks good and displying properly. But when we open the same document where 2003 is installed the format got corrupted and it is not displying properly. I have attached the word document which we created and also plseas see the attachments which contains the snapshot of 2003 word where it is not displaying properly. Following is the sample of code to create a cell in table (just for refernce)
private void CreateCell(string cellText, double widthOfCell, string alignType,bool isFirstColumn, bool isLastColumn)
builder.CellFormat.HorizontalMerge = CellMerge.None;
if (alignType.Equals("left", StringComparison.InvariantCultureIgnoreCase))
builder.ParagraphFormat.Alignment = ParagraphAlignment.Left;
else if (alignType.Equals("right", StringComparison.InvariantCultureIgnoreCase))
builder.ParagraphFormat.Alignment = ParagraphAlignment.Right;
else if (alignType.Equals("center", StringComparison.InvariantCultureIgnoreCase))
builder.ParagraphFormat.Alignment = ParagraphAlignment.Center;
builder.ParagraphFormat.Alignment = ParagraphAlignment.Justify;
builder.CellFormat.VerticalMerge = CellMerge.None;
builder.CellFormat.Width = widthOfCell;
One more point is when we open the document in 2003 office the format will be correupted and if we double click in one of the cell inside the table the format is restroing/displying properly. For this when we recorded the macro to know what code it is genrating , it got the following:
Selection.ParagraphFormat.TabStops.Add Position:=InchesToPoints(2.56), _
Please help me in regarding this.
For word 2003 we need to code something differently? Or any format issue with 2003?