摘要
DataGridView控件是信息化系统广泛应用的数据显示控件,但并未提供与Excel文档的交互功能。针对多种交互方法进行分析,通过使用Excel组件和设置Range对象的属性,大大提高数据交互效率和稳定性;采用动态添加控制右键菜单方式,对交互完成后的Excel文件导出操作方式进行优化。测试结果表明,优化后控件的便捷性、移植性、美观度和易用性得到了很大提升。
DataGridView Control is a data display control widely used in information system , but it can't interact with Excel documents. Analysis has been done on various interactive methods. By using Excel components and fixing the property of Range object, data interactive efficiency and stability are greatly improved. In addition,dynamic addition is used to control right key menu in order to optimize the Excel document deriving process after interaction comes to an end. Testing findings demonstrate that the optimized control is greatly improved in terms of its convenience, portability, presentation, and being easy to use.
作者
吴吴双
WU Shuang(Teaching Affairs Department, Wenzhou Vocational & Technical College, Wenzhou, 325035, China)
出处
《温州职业技术学院学报》
2016年第2期68-71,共4页
Journal of Wenzhou Polytechnic
基金
温州职业技术学院科研项目(WZY2015012)