在VC中使用
1、在对话框资源中加入ChinaExcel Report控件:
打开对话框资源,然后在对话框资源上点鼠标右键弹出关联菜单,执行“Insert ActiveX Control…”,插入 ChinaExcel Control对应控件。
2、在项目中加入ChinaExcel Report类型库的引用:
(a) 选择主菜单“Project”中的“Add To Project”中的“Components and Controls...",弹出“Components and Controls Gallery”窗口。
(b) 在窗口中双击“Registered ActiveX Controls”,打开此目录,选择“ChinaExcel Control”,点击“Insert”按钮并点“确定”。
(c) 点击“Close”按钮关闭“Components and Controls Gallery”窗口,完成添加过程。
(d) 添加完成之后,就可以直接引用CChinaExcel类。
具体帮助请参考《ChinaExcel Report使用指南》中的“C/S应用开发”中的“在开发工具中安装报表组件”。