&&怎么样在word的页眉或者页脚上写上"共几页/第几页"
Doc=Createobject('word.application')
doc.Visible= .T.
doc.Documents.add
doc.ActiveWindow.ActivePane.View.SeekView=10
doc.Selection.TypeText("第")
pagex= "Page \* MergeFormat"
doc.Selection.Fields.Add(doc.Selection.Range, -1,pagex,.f.)
doc.Selection.TypeText("页")
doc.ActiveWindow.ActivePane.View.SeekView=0