Table Of Contents Page Numbers not matching the document page numbers

Hi,

In converting Excel to Word, I have noticed that the Table Of Contents page numbers do not match that actual page numbers in the document. I have added table of contents and page numbering to your Excel2Word sample code - I have attached code. To see this issue, please convert Text.xml in the Common folder of the zipped file.

Please let me know if there is a workaround to this issue.

Thanks.

Todd

Dear Todd,


Thank you for reporting us the problem.

I have reproduced your problem and linked your request to related record in our tracking system. We will inform you as soon as problem is resolved.

In the meantime I would suggest you how to work around this problem.
It concerns of a little code change:

Just add HeightRule for row format:

<span style=“font-size:10.0pt;line-height:115%;font-family:
“Courier New”;mso-no-proof:yes”>wordsRow.RowFormat.HeightRule = HeightRule.Exactly;


you should add it after row height definition, that is after the following line:


wordsRow.RowFormat.Height = ConvertUtil.PixelToPoint(cells.GetRowHeightPixel(rowIndex));



Hope this helps.

Thanks - that worked great.

The issues you have found earlier (filed as WORDSNET-4105) have been fixed in this .NET update and in this Java update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.