.版本 2 .如果真 (excel.获取 (“excel.application”)) excel.读对象型属性 (“ActiveSheet”, ).读对象型属性 (“PageSetup”, ).写属性 (“LeftHeader”, “&G”) ' 关键步骤,&G表示图像格式,没有这参数,下面语句不起作用 ' 页眉左中右 LeftHeader CenterHeader RightHeader ' 页脚左中右 LeftFooter CenterFooter RightFooter excel.读对象型属性 (“ActiveSheet”, ).读对象型属性 (“PageSetup”, ).读对象型属性 (“LeftHeaderPicture”, ).写属性 (“Filename”, 取运行目录 () + “\a.png”) ' 页眉设置图片左中右 LeftHeaderPicture CenterHeaderPicture RightHeaderPicture ' 页脚设置图片左中右 LeftFooterPicture CenterFooterPicture RightFooterPicture .如果真结束
易语言excel加入图片