set_first_page_header方法

set_first_page_header(section, header_script)

设置格式化 Excel 文件首页页眉的脚本。 仅当 IsHFDiffFirst 为真时在 Excel 2007 中有效。

def set_first_page_header(self, section, header_script):
    ...
范围 类型 描述
section int 0:左部分,1:中部分,2:右部分。
header_script str 标头格式脚本。

也可以看看