计算机与现代化 ›› 2011, Vol. 1 ›› Issue (8): 198-200.doi: 10.3969/j.issn.1006-2475.2011.08.054

• 应用与开发 • 上一篇    下一篇

基于BasicExcel的读写Excel方法研究

刘瑞通,苟先太,马 超,张建峰   

  1. 西南交通大学电气工程学院,四川 成都 610031
  • 收稿日期:2011-05-12 修回日期:1900-01-01 出版日期:2011-08-10 发布日期:2011-08-10

Methods of Access Excel Based on BasicExcel

LIU Rui-tong, GOU Xian-tai, MA Chao, ZHANG Jian-feng   

  1. School of Electrical Engineering, Southwest Jiaotong University, Chengdu 610031, China
  • Received:2011-05-12 Revised:1900-01-01 Online:2011-08-10 Published:2011-08-10

摘要: 分析在Visual Studio 2005下利用C++语言读取Microsoft Office Excel文件内容的几种典型方法的优缺点。当读写不含公式、图表Excel文件中的大量数据时可以采用读写Excel非常快的BasicExcel方法,本文详细给出一种修改BasicExcel类的加载函数、Sheet页操作函数、读写单元格函数、另存为函数的方法,使该类能够很好地支持中文平台。

关键词: BasicExcel, 读写Excel, ANIC编码, Unicode编码

Abstract: The advantages and disadvantages of several kinds of typical methods of accessing Microsoft Office Excel file content by C++ language in Visual Studio 2005 is analyzed. BasicExcel class which accesses Excel fast is used when accessing the large amounts of data in the Excel file which does not contain formula or chart. A method of modifying loading function, sheet operation function, accessing cell function and saving as function of BasicExcel is provided in detail. This class easily supports Chinese platform.

Key words: BasicExcel, access Excel, ANIC, Unicode

中图分类号: