PreviousArticleI introduced the use of reports that are not restricted by the database in VB, and also agreed to release the. NET version in the future,
However, because I have been too busy recently, I have always been jumping tickets.
After I started to write the original version, I found that there are similarCode,
So I just made a simple modification on the basis of it.
Run the following code in vs2003 and framework1.1. The crystal report is provided by vs2003. use VB. NET.
We use this mode, which is often referred to as the "push" mode, using the ADO. NET data source.
First, I will introduce how to create such a report template.
1: Create a new project and add a new ADO. NET data source
Here, I use the example database of access provided by the crystal report as a sample to obtain a data table structure.
After the connection is successful, you can select a table
Note that the steps here only obtain a data table structure and do not affect the distribution of future reports and the database structure.
In fact, this step can be omitted after you are familiar with it,
This step generates an XML file containing the data structure. You can manually change this template.
OK. Save the project after completing this step.