Hi,
Almost everything works ok, when I set tooltip of textbox to STYLE=“Heading 1” the style is set to Heading 1 in Word, but for textboxt where I set tooltip to “TOC” there is new line with smaller text generated. I’m using latest version (from begining of december). Why do aspose not generating TOC field? I can update TOC manually but I would be good to have that field in file.
Regards
Thanks for your inquiry. You are right, Aspose.Words cannot update TOC fields at the moment. The technical reason is that MS Word document is flow document and does not contain any information about its layout into lines and pages. So there is no way to determine where page starts or ends, but this information is necessary to build TOC.
At the moment, we already have our own rendering engine, which allow layout documents into pages and lines and currently we are working on TOC fields updating feature. It will be supported somewhere at the beginning of the next year.
Best regards.
Yes, I now that it is problem with knowing no of pages to TOC. But TOC in Word is a “Technical Field”, so if you just put that field in report output everybody will have possibility to update that field just by clicking right button of the mouse on it. It is the simpliest solution for that problem. I really don’t expect that you will do numbering for TOC, you really don’t need to. Word has his own mechanism and the best solution for me is just to put TOC field to word file.
Regards
alexey.noskov:
Thanks for your inquiry. You are right, Aspose.Words cannot update TOC fields at the moment. The technical reason is that MS Word document is flow document and does not contain any information about its layout into lines and pages. So there is no way to determine where page starts or ends, but this information is necessary to build TOC.
At the moment, we already have our own rendering engine, which allow layout documents into pages and lines and currently we are working on TOC fields updating feature. It will be supported somewhere at the beginning of the next year.
Hi,
Thanks for the update. I am just starting to get familiar with Aspose and wanted to know about this. So when you develop this feature, will this allow for a TOC to be automatically created and inserted at the beginning of a document?
Thank you for your interest in Aspose.Words. Yes, you are right. Once we implement this feature, you will be able to update existing TOC in a document and create your own TOC.
But, currently, You can insert a TOC field using Aspose.Words, but it will be an “empty” TOC that can be “populated” by Microsoft Word only.
Best regards.
alexey.noskov:
But, currently, You can insert a TOC field using Aspose.Words, but it will be an “empty” TOC that can be “populated” by Microsoft Word only.
That is what I said before, if you want to insert “empty” TOC field that can be “populated” by Word only nothing is happen. I’ve got a line with smaller font and nothing else, there wasn’t any TOC field
Regards,
Marcin
Thank you for additional information. Could you please attach your output document, sample rdl report and rdl.data file. We will check the issue and provide you more information.
Best regards.
Thank you for additional information. Actually, your output document contains TOC field and you can update it. Just press Alt+F9 to see it or just press Ctrl+A and then F9 to update all fields in the document.
Best regards.