VFP控制EXCEL的方法(终于找到了).docVIP

  • 34
  • 0
  • 约1.8万字
  • 约 14页
  • 2017-02-17 发布于北京
  • 举报
VFP控制EXCEL的常用方法 oExl=CREATEOBJECT(Excel.application) oExl.Visible=.T. oExl.DefaultSaveFormat=39 oExl.SheetsInNewWorkbook=1 oExl.Workbooks.Open(cXLS) oExl.WindowState=-4140 窗口最小化 oExl.WindowState=-4143 窗口正常化 oExl.WindowState=-4147 窗口最大化 ** 页面设置 oExl.ActiveSheet.PageSetup.PrintTitleRows=$1:$3 打印标题 oExl.ActiveSheet.PageSetup.Orientation=2 页面方向:1纵向/2横向 *oExl.ActiveSheet.PageSetup.PaperSize=11 纸张尺寸:9-A4/11-A5 oExl.ActiveSheet.PageSetup.TopMargin=0.8/0.035 顶边距 oExl.ActiveSheet.PageSetup.BottomMargin=0.8/0.035 底边距 oExl.ActiveSheet.PageSetup.LeftMargin=0 左边距 oExl.ActiveSheet.PageSetup.RightMa

文档评论(0)

1亿VIP精品文档

相关文档