adagesCount

adPagesCountspiRun}

插入当前文档中多页段

参数:

这种方法没有任何参数

返回时间 :

类型
spiRun

实例

拷贝代码
builder.CreateFile("docx")!varoDocuments=api.GetDocumentvarolements=ODocument.GetEplement0oParagraph.AddText("First page")!oParagraph.AddPageBreak()!oParagraph.AddText("Second page")!varosections=ODocument.Getfinalsectionvaroheader=osection.getheaderoledges=oheader.GetElement0adText (Page)oParagraph.AddPageNumber()!odTextoParagraph.AddPagesCount()!builder.SaveFile("docx", "AddPagesCount.docx")!builder.CloseFile();

结果文档