Recently, the problem of crystal reports were very particularly found. I also used crystal reports for the first time. According to I: I have a review, but after using it, there are some little experience, I hope that friends who are entangled on these issues can be a bit free. ! In addition, I also said that the problems I have encountered, everyone discusses the following.
The first is the design of the crystal report
Design report I started to design in the professional designer of the crystal report, write inquiry statements, then fill in the field. However, it is found that it is very slow in the process of actual call. Moreover, the crystal report is not in the background, and the data is not used in the background. When you print the data, you will find the data source, I think this is a relatively failed to the crystal report. That's why some people have designed the report, and it also shows it, and later print, and discovered that the data is gone. The report is not seen!
You must
The data is binded to the data in Page_Load. Be careful not to write
Ispostback inside! I don't know what the crystal report is more than 400 m! In this sense, it is better to do well as ActiveReport! (People who support crystals are yelling at me!)
Then I said the problem, I will now define a DataSet1 dataset in VS, then throw the data to be bound to DataSet1, and then return to the design interface of the crystal report to bind the data, including define the printer paper (Page setting) (Print Setting) is defined first! save. Back to VS, when calling a crystal statement, you have to throw the data into the DataSet1 instance you created, then bind the instance to your crystal report.
(to be continued……)