当前位置: 主页 > PLC控制

求助wincc的spreadsheet控件怎么使用

1.请问怎么把做好EXCLE模版导入到spreadsheet控件中
2.求spreadsheet控件的使用方法
谢谢谢额

问题补充:
我问的是导入EXCLE
spreadsheet控件怎么循环填充数据
谢谢

最佳答案

1、把EXCEL模版导出成XML或者HTML格式,在spreadsheet控件的有个XML啥的属性,设置好就行了
2、控件的使用方法和VBS操作EXCEL差不多属性方法参考:htTP://www.cnblogs.com/queen/archive/2010/08/21/1805312.html

补充:
那是我理解错误了…
spreadsheet到EXCEL的话,可以用spreadsheet的EXPORT方法
EXCEL到spreadsheet的话,用遍历EXCEL单元格写入到spreadsheet控件的单元格中
遍历单元格,就是设置好spreadsheet对象和EXCEL对象
可以用for循环例如
fori=0to20
form=0to20
spreadsheet.cells(i,m).value=EXCEL.cells(i,m).value
next
next
EXCEL的操作方法,在论坛里面zhang版有帖子介绍:
wincc写数据到excel控件
http://www.ad.siemens.com.cn/club/bbs/poST.ASpx?a_id=1339777&b_id=5&s_id=17&num=12#anch
vbs操作excel方法
http://www.ad.siemens.com.cn/club/bbs/post.aspx?a_id=1341746&b_id=5&s_id=17&num=5#anch
【分享】wincc读写excel脚本,经过测试的。
http://www.ad.siemens.com.cn/club/bbs/post.aspx?a_id=1266491&b_id=5&s_id=17&num=12#anch

提问者对于答案的评价:
感谢,麻烦了谢谢

专家置评

已阅,最佳答案正确。

  • 关注微信

猜你喜欢

微信公众号