摘要
在Visual C++ 6.0开发环境中,利用VB提供的报表控件Crystal Report Active X可实现报表及报表打印功能。其过程是:① 用Crystal Report Pro设计报表;② 在VC中添加Crystal Report Active X控件;③ 双击添加的控件,在属性页中切换到Control tab并选定报表文件;④ 添加显示打印按钮和消息响应函数;⑤ 使用ODBC与数据库进行连接。
The creating report form and printing form was realized with the Crystal Report Active X Control-ware in VC++ 6.0. The processes are given below: 1. Making report form with the Crystal Report Pro. 2. Adding the Crystal Report Active X Control-ware in VC. 3. Double-clicking the Crystal Report Active X Control-ware added, switching Control tab in attribute page and choosing the report form file. 4. Adding printing button and response function. 5. Connecting with database using ODBC.
出处
《兵工自动化》
2002年第6期21-21,共1页
Ordnance Industry Automation