locked
Is there a way to apply RMS Template to a Word Document without using the Interop Assembly RRS feed

  • Question

  • Hi,

       I am trying to create a server side application that will apply RMS Policy template to a Word document (or an Office Document in general) programmatically. Is there a way to achieve this without using the Word Interop(or Office Interop assemblies).

     

     

    Something like this works.

    object fileName = @"C:\Templates\Doc.docx";

                    doc
    = wordApp.Documents.Open(ref fileName, ref missing, ref readOnly, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible);

                   
    string TemplateFile = @"C:\Templates\test.xml";

                    doc
    .Permission.ApplyPolicy(TemplateFile);

     

    But I would like to avoid using the interop. I have not found an alternative method(OpenXML does not have a method to apply policy template).

     

    Thanks in Advance

    -Karthikeyan K

    Friday, September 7, 2012 2:22 PM

Answers

All replies