Exemple #1
0
        public void SetDocProperty()
        {
            try
            {

                OXMLDocWrap doc = new OXMLDocWrap();
                doc.OpenDocument(@"..\..\test\TestModule.docx");

                doc.SetDocTextProperty("ZKODocType", "PROP_DocType_007");
                doc.SetDocTextProperty("ZKODesignation", "PROP_Dignation_007");
                //doc.RefreshDocTexProperty();
                doc.RefreshAutoDocTextProperty(false);

                doc.CloseDocument();

            } catch (Exception e)
            {
                Assert.Fail("EXCEPT: " + e.Message);
            }

            Assert.Pass();
        }