Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            Document document = new Document();

            //Loading documetn with macros.
            document.LoadFromFile(@"../../../../../../Data/Macros.docm", FileFormat.Docm);

            //Removes the macros from the document.
            document.ClearMacros();

            //Save docm file.
            document.SaveToFile("Sample.docm", FileFormat.Docm);

            //Launching the MS Word file.
            WordDocViewer("Sample.docm");
        }