摘要
将VB提供的OLE控件与OLE Automation技术相结合,不仅可实现任意复杂曲线的制作,而且可实现曲线数据的实时刷新。其原理是用OLE控件将图表嵌入VB应用程序,而数据刷新则用后台启动Excel将数据输入至数据表中完成。其实现方法是在Excel中建立数据源表,在VB应用程序中创建OLE对象,并以数据刷新函数实现数据的动态激活。
By combining OLE controls with OLE automation technology in visual basic, not only any complex curve can be made, but also data in the curve can real-timely be refreshed. The principle is that the graph is inserted into the VB application routine with using OLE controls, then, refresh of data is performed by data written into the *.XLS at the time running excel.exe in the back. The method is that *.XLS is built in the excel, OLE object is created in the VB application routine, and data dynamic activation is executed using the data refresh function.
出处
《兵工自动化》
2002年第1期40-41,共2页
Ordnance Industry Automation