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

Free Support Forum - aspose.com

Remove manifest

Hi,

is it possible to remove the VSTO-Manifest-Reference of an customized Word 2007 document with Aspose.Words ?

Thank you!

Kind regards,
Jovica

Hi

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

Thanks for your inquiry. Could you please attach sample document for testing?

Best regards.

Hi,

in VSTO I would do it like the following:

ServerDocument.RemoveManifest(pathToCustomizedDocX);
I wonder, if Aspose has an equvalent statement!?

See the attached docx file.

Thank you!

Hi

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

Thank you for additional information. I suppose, you mean

ServerDocument.RemoveCustomization(fileName);

There is no equivalent of this method in Aspose.Words. However, it seems customization is removed after open/save the document using Aspose.Words.

Best regards.

Hi Alexey!

We require the same feature. I'm not sure if opening and saving the document removes the customization properly:

When we open a template that is customized (by creating an Aspose.Words.Document instance), insert some content and then save the Document, the manifest remains.

In the documentation I did not find any hint that removing customization is supported now by version 8.0.0.

Do you know if this feature is planned to be realized in another future version of Aspose.Words?


Thanks in advance for your help,

cheers,


Stephan

Hi Stephan,

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

Thanks for your request. Could you please attach your document here for testing? I will check the issue and provide you more information.

Best regards.

Hi Alexey!

Thanks a lot for your quick reply!

Please find attached file template_with_manifest.docx (the template containing a document customization) and file hopefully_without_manifest.docx.

The template was opened and saved as follows:

Document doc = new Document(templateFilePath);
doc.Save(@"C:\test\hopefully_without_manifest.docx");

You can see that hopefully_without_manifest.docx still contains the customization by opening it (error occurs because the .vsto file was not found; the action pane appears).

Currently, we use VSTA's ServerDocument#RemoveCustomization() as described in the posts above. After that, we remove the Solution Id from CustomDocumentProperties by using Aspose and all customization is removed.

We now would like to do everything using Aspose.Words (no VSTA/VSTO).

Is this possible?

Thank you very much for your efforts,

cheers,

Stephan

Hi Stephan,

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

Thank you for additional information. We will consider adding an analog of ServerDocument.RemoveCustomization method in Aspose.Words API. Your request has been linked to the appropriate issue. You will be notified as soon as the issue is resolved.

Best regards.

Hi Alexey!

Thank you very much!

Could you please (if possible) estimate when the new feature will be available (next Aspose.Words)?

Thanks,

Stephan

Hi Stephan,

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

Thanks for your request. Unfortunately, I cannot provide you any reliable estimate regarding this feature at the moment. I will let you know once the issue is resolved.

Best regards.