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

Free Support Forum - aspose.com

Interop replacement for margin setup, track chagnes, TOC and document conversion using Aspose.Word for .NET

Hi,

My project team is looking for solution to replace interop library. Basically, we assemble document’s through .NET service and we already build a solution for it using Interop. Performance wise the interop library is very slow and moreover we shouldn’t use it in server machines as per Microsoft guidance. So, we are planning to replace Interop library to Aspose.Words. To start with, I need to know whether following use case are achieved using Aspose.Words.

  1. Set “Track changes” parameter.
  2. Margin setup (Top, Bottom, Left, Right).
  3. Page Number reset.
  4. TOC Update and apply TOC Styles.
  5. Section break (unwanted blank pages remove).
  6. Docx to PDF conversion.

Thank You,

Regards,
P.Shanmugam.

@Shan99

Yes, you can achieve your requirements using Aspose.Words

Please read article about Track Changes in a Document.

You can set and get page margins using members of PageSetup class. Please read the members of this class. Moreover, please read following article.
Work with Document Options and Settings

You can use PageSetup.PageStartingNumber property to get or set the starting page number of the section.

You can get the style of TOC as shown below and update the style using members of Style class.

Document doc = new Document(MyDir + "input.docx");
Style style = doc.Styles[StyleIdentifier.Toc1]; 

To update the TOC field, please use FieldToc.Update method. You can update all fields in the document using Document.UpdateFields.

You can remove section break from the document using Aspose.Words’ API. Could you please ZIP and attach your input and expected output documents here for our reference? We will then provide you more information on this query.

Please refer to the following article.
Converting a Document

Thank You for the quick response. We will look into it.