机房收费系统之vb报表的模板的制作(一)
机房收费系统有报表的功能,报表对于我们来说有点陌生,这不是会计的事吗?怎么机房收费系统也参合进来了,其实我们学会了报表的步骤,理解了代码后,报表变得不是很难,世上无难事,只怕肯登攀吗! 下面是报表步骤 1 安装Grid++Report 报表设计器(在网上下
机房收费系统有报表的功能,报表对于我们来说有点陌生,这不是会计的事吗?怎么机房收费系统也参合进来了,其实我们学会了报表的步骤,理解了代码后,报表变得不是很难,世上无难事,只怕肯登攀吗!
下面是报表步骤
1 安装Grid++Report 报表设计器(在网上下载安装)
2 下载控件 安装 然后在vb的工程-部件中引用 如图
3 创建模板(到时候导入到vb中)
4 在vb中用代码将报表链接
下面是我只制作报表模板的步骤
1 安装好报表设计器之后我们打开它界面如下
2 插入报表头:在报表设计器的菜单栏中找到插入--报表头
3 插入静态框 :插入一个静态框显示报表标题:执行菜单“插入—静态框”,用鼠标在报表头的显示区域拖放一个矩形区域,然后双击改变里面的标题。如下图
4 定义明细网格
1、插入明细网格:插入—明细网格,新插入的明细网格显示在报表布局窗口中。如下图
2、数据库连接串与查询SQL:在明细网格的工具栏上选择“数据库连接串与查询SQL”打开定义窗口。如下图点击后出现下图所示
5 定义数据库连接串:执行窗口左下角的”创建数据库连接串......“
记得在允许保存密码上打钩
测试通过
6创建字段:编辑——根据明细查询SQL生成字段。如下图
创建列:“编辑—根据字段生成表格列
更改标题 如下图
调整列宽:将光标移动到列的右边界位置进行拖放
改变表格标题的显示文字:按照上图中的提示进行即可
7 定义页脚显示页号1 插入页脚:执行菜单“插入—页脚”,新插入的页脚会显示在报表布局窗口中。
2 插入一个综合文字框显示打印时间:
插入综合文字框:在部件框工具栏中选择“综合文字矿”,然后在页脚的左边拖放一个矩形,一个综合文字框已经插入。
设置显示内容:在右下位置的属性编辑窗口中选中“文本”行,点击“...”按钮打开文本编辑对话框。在编辑框中输入文字。
在引用类型中选择系统变量
在系统变量中选择当前日期和时间
最后点击确定,预览一下效果图
效果不完美,见笑了,弄完之后,我们觉得也不算太难了吧,有一句话不这么说嘛,不怕不知道,就怕不不知道,其实知道后就是这么回事,我们要善于站在巨人的肩膀上学习知识,好了,最后可以保存了,至于怎么让它与vb交互起来,请看下一篇博客。

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Both vivox100s and x100 mobile phones are representative models in vivo's mobile phone product line. They respectively represent vivo's high-end technology level in different time periods. Therefore, the two mobile phones have certain differences in design, performance and functions. This article will conduct a detailed comparison between these two mobile phones in terms of performance comparison and function analysis to help consumers better choose the mobile phone that suits them. First, let’s look at the performance comparison between vivox100s and x100. vivox100s is equipped with the latest

With the rapid development of the Internet, the concept of self-media has become deeply rooted in people's hearts. So, what exactly is self-media? What are its main features and functions? Next, we will explore these issues one by one. 1. What exactly is self-media? We-media, as the name suggests, means you are the media. It refers to an information carrier through which individuals or teams can independently create, edit, publish and disseminate content through the Internet platform. Different from traditional media, such as newspapers, television, radio, etc., self-media is more interactive and personalized, allowing everyone to become a producer and disseminator of information. 2. What are the main features and functions of self-media? 1. Low threshold: The rise of self-media has lowered the threshold for entering the media industry. Cumbersome equipment and professional teams are no longer needed.

1. Start PPT, create a new blank document, select all text boxes and delete them. 2. Execute the Insert-Shape command, drag a rectangle in the document, and fill the shape with black. 3. Drag the rectangle to elongate it, execute the Insert-Shape command, drag out the small square, and set the fill color to white. 4. Copy and paste the small squares one by one so that the top and bottom are evenly distributed on both sides of the film. After selecting them all with ctrl+a, right-click and select Group. 5. Execute the Insert-Picture command, find the picture to be inserted in the pop-up dialog box, click to open, and adjust the size and position of the picture. 6. Repeat step 5 to insert and set the remaining pictures in order to form a film picture. 7. Select the film, execute animation-add animation command

As Xiaohongshu becomes popular among young people, more and more people are beginning to use this platform to share various aspects of their experiences and life insights. How to effectively manage multiple Xiaohongshu accounts has become a key issue. In this article, we will discuss some of the features of Xiaohongshu account management software and explore how to better manage your Xiaohongshu account. As social media grows, many people find themselves needing to manage multiple social accounts. This is also a challenge for Xiaohongshu users. Some Xiaohongshu account management software can help users manage multiple accounts more easily, including automatic content publishing, scheduled publishing, data analysis and other functions. Through these tools, users can manage their accounts more efficiently and increase their account exposure and attention. In addition, Xiaohongshu account management software has

PHP is a server-side scripting language widely used in web development. Its main function is to generate dynamic web content. When combined with HTML, it can create rich and colorful web pages. PHP is powerful. It can perform various database operations, file operations, form processing and other tasks, providing powerful interactivity and functionality for websites. In the following articles, we will further explore the role and functions of PHP, with detailed code examples. First, let’s take a look at a common use of PHP: dynamic web page generation: P

Regarding PPT masking, many people must be unfamiliar with it. Most people do not understand it thoroughly when making PPT, but just make it up to make what they like. Therefore, many people do not know what PPT masking means, nor do they understand it. I know what this mask does, and I don’t even know that it can make the picture less monotonous. Friends who want to learn, come and learn, and add some PPT masks to your PPT pictures. Make it less monotonous. So, how to add a PPT mask? Please read below. 1. First we open PPT, select a blank picture, then right-click [Set Background Format] and select a solid color. 2. Click [Insert], word art, enter the word 3. Click [Insert], click [Shape]

"Understanding VSCode: What is this tool used for?" 》As a programmer, whether you are a beginner or an experienced developer, you cannot do without the use of code editing tools. Among many editing tools, Visual Studio Code (VSCode for short) is very popular among developers as an open source, lightweight, and powerful code editor. So, what exactly is VSCode used for? This article will delve into the functions and uses of VSCode and provide specific code examples to help readers

C++ template specializations affect function overloading and rewriting: Function overloading: Specialized versions can provide different implementations of a specific type, thus affecting the functions the compiler chooses to call. Function overriding: The specialized version in the derived class will override the template function in the base class, affecting the behavior of the derived class object when calling the function.
