您好,欢迎来到佳博论文网!

基于VC++的数据库报表的开发

论文编号:CK064论文字数:12752,页数:50

摘要

在实际的工业系统中,总是需要利用传感器获取外界的信息,然后将获取的信息传输给计算机,然后通过软件对采集的数据进行处理,并终达到我们的要求。任意一个自动控制系统、信息处理系统,只要是关于传感器信息获取方面的科研项目,必将涉及到数据的处理以及图表的显示; 在工程应用中,报表的生成是一个必要的工序。工业中用的多的是数据以及工作条件的保存,但是对于存在实际工程图表的项目而言,这样的报表是不够的,需要能将图嵌入到报表中。常用的报表的做法是利用VC驱动ADO技术将相关数据等信息存储到EXCEL文件中,然后虚拟打印成PDF格式的报表,但是这样嵌入图像的功能比较弱。本设计主要以VC++6.0为开发环境,利用VC++6.0编译环境中MFC技术制作软件界面,并通过编程来使软件和TXT格式文件链接起来,并保存所输入的数据,并生成报表。

关键词:VC++6.0、TXT、报表、MFC

Abstract

In actual industrial systems, always need to use the sensor to obtain information from outside, and then transfer the information to the computer,and then deal the data with software, and eventually met our requirements. Any automatic control system and information processing system, as long as it is to obtain information from the sensor area of research will involve data processing and chart display; In engineering applications, the generation of statements is a necessary process.The data which is used mostly as well as the preservation of working conditions in the industry, but there is a chart of the actual engineering projects, such statements are not enough, need to be able to map embedded in statements. Statements of the most commonly used approach is to use VC to drive the ADO technology and other information stored in the EXCEL file, and then virtual print statements into PDF format, but such features embedded in images is relatively weak.In the design we use VC++6.0 mainly, use the technology of MFC of VC++6.0 to make software interface,and using programming to link the sofeware and TXT format file, and save the input data and generate reports.

Key words:VC6.0、TXT、Report、MFC

目 录

摘要 I

第一章 绪论 1

1.1 报表的概念1

1.2 报表的分类1

1.3 研究的意义1

第二章 可行性分析 3

2.1 开发工具的选择3

2.1.1 Visual C++开发数据库技术特点3

2.1.2 MFC编程特点4

2.1.3 数据库访问接口ADO6

2.2 可行性研究9

2.3 经济可行性9

2.4 技术可行性10

2.5结论10

2.6 本章小结10

第三章 系统分析 11

3.1 报表结构分析11

3.2 消息映射机制11

3.3 使用AppWizard创建程序框架14

3.4 计算机系统环境配置15

3.4.1 硬件和操作系统环境15

3.4.2 软件环境15

3.5 本章小结15

第四章 详细设计 16

4.1 流程图16

4.2 模块说明16

4.2.1 登入模块16

4.2.2 添加和数据模块18

4.2.3 数据的保存19

4.2.4 帮助模块20

4.2.5 滚动图标模块21

4.3 本章小结21

第五章 结束语 22

致谢 23

参考文献 24

附录 源程序 25

基于VC++的数据库报表的开发......