You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何使用setHeaderFooter函数创建多组页眉页脚?

用setHeaderFooter工具创建多组页眉页脚

这里教你怎么用setHeaderFooter工具创建多组页眉页脚,直接看示例代码:

setHeaderFooter(wb1, sheet = "sheet", firstHeader = c("左侧页眉1", "居中页眉1", "右侧页眉1"), footer = c("左侧页脚", "居中页脚", "右侧页脚"))

参数说明:

  • firstHeader:传入包含三个元素的数组,依次对应第一页页眉的左侧、居中、右侧内容
  • footer:传入包含三个元素的数组,依次对应页脚的左侧、居中、右侧内容

内容的提问来源于stack exchange,提问作者SKT

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.24 19:12:34