General Design Fastreport report can be directly stored in the database connection information to the report, but there is a serious security problem, that is, how to use the designer to reopen the report when the client can see the database account and password, so that the database system is very insecure, So here we do some setup to remove the account information from the report.
Open Report Designer, locate the data connection item, and delete the connection information stored in Conncetionstring in the property. Of course, this deletion, the report will not find the data, so we also need to send the database connection information in the program to the report.
In the program we are directly from the database read data stored in the dataset, and then pay the report, so that we do not have to pass the data connection information, in the earlier version of the transfer connection information such as the settings, but the experiment has not been found to be useful, rather than directly push the dataset simple. The data table stored in the dataset is named "Table", and if not, you can export the view because you need to set the same name in the report so that the two sides correspond.
Here we will need to display the data table name changed to table, and the program corresponds to the same, otherwise the error can not read the data.
After the above settings can display the report, but it is likely to appear only one data, if so, you need to follow the following method to set up the report.