您现在的位置是:首页 > 电脑技术查询 > web开发

OWC中SpreadSheet单元格居中的有关问题

编辑:chaxungu时间:2022-10-02 23:23:05分类:web开发

OWC中SpreadSheet单元格居中的问题
window.form1.ReportData.ActiveSheet.Range( "A1 ").VAlignment = 1;//單元内字元位置縱向調整0:下,1:中,2:下
window.form1.ReportData.ActiveSheet.Range( "A1 ").HAlignment = 2; //單元内字元位置橫向調整1:作,2:中,3:右

这样设置居中,页面提示:对象不支持此属性或方法,这是怎么回事?具体这块应该怎样来设置哪?请高手指点!

------解决方案--------------------
帮LZ 顶