We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Update fields And Table of content

we are working on the word automation.For that we have define the word Template.

In Templete we have used filed like {IncludeText "Filepath" } and TOC which need to update while creating document using Templete.

now,we want to update the filed as in using introp we can do likle field.update(),which include the document in given "Filepath".i want to know,how i can achieve this functionality using the apose word product.bacause,i dot want to install office on server.

same way,i want to update table of content define in my templete,once the all document done.

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. Unfortunately, there is no way to update TOC using Aspose.Words at the moment. Your request has been linked to the appropriate issues. You will be notified as soon as this feature is available.

We are going to support TOC fields evaluation in few months.

Also please see the following link to learn what fields are supported:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/field-update.html

Best regards,

Is it possible to create the table of content programmatically, after merging/inserting the all document?

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your inquiry. You can insert fields in Word document using Documentbuilder.InsertField method. Please see the following link for more information:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/aspose.words.documentbuilder.insertfield.html

Please try using the following code to insert a TOC field:

// Insert Table of Contents

builder.InsertField("TOC \\o \"1-3\" \\h \\z \\u", null);

Best regards,

The issues you have found earlier (filed as 10380) have been fixed in this update.


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

The issues you have found earlier (filed as 12698) have been fixed in this update.


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