你这个都完成了 %90, 方法一 就是正确的啊,你能获取第一面 后面奇偶数页面 再判断一下不就OK。方法二也行,主要就是获取到底有多少个页脚 headercount,i:Integer; headercount:=WordApp.ActiveDocument.Sections.item(1).Headers.count; for i:=1 to headercount do begin //你再判断 I是奇偶数,这个就不写 ShowMessage(WordApp.ActiveDocument.Sections.item(1).Headers.item(i).Range.Text); end;
headercount:=WordApp.ActiveDocument.Sections.item(1).Headers.count;
for i:=1 to headercount do
begin
//你再判断 I是奇偶数,这个就不写
ShowMessage(WordApp.ActiveDocument.Sections.item(1).Headers.item(i).Range.Text);
end;