示例#1
0
        // Token: 0x0600000A RID: 10 RVA: 0x00002300 File Offset: 0x00000500
        public void InsertFile(string vfilename)
        {
            Document srcDoc          = new Document(vfilename);
            Node     previousSibling = this.oWordApplic.CurrentParagraph.PreviousSibling;

            AsposeWordApp.InsertDocument(previousSibling, this.oDoc, srcDoc);
        }
示例#2
0
            // Token: 0x0600001A RID: 26 RVA: 0x0000308C File Offset: 0x0000128C
            ReplaceAction IReplacingCallback.Replacing(ReplacingArgs e)
            {
                Document document = new Document(this.vfilename);

                document.FirstSection.Body.FirstParagraph.InsertAfter(new Run(document, this.pNum + "."), null);
                Node      matchNode       = e.MatchNode;
                Paragraph insertAfterNode = (Paragraph)e.MatchNode.ParentNode;

                AsposeWordApp.InsertDocument(insertAfterNode, document);
                e.MatchNode.Remove();
                e.MatchNode.Range.Delete();
                return(ReplaceAction.Skip);
            }