Fixed data binding of Xtrareport II

I have understood the preliminary usage of XtraReport, and now we are going to learn more about data binding.

1. Preparation On the basis of the previous section, select the page F4 of the designer report to open the property panel to adjust Paper Kind=A4 Click on the datasource and select the add Report DataSource at the bottom. At this time, four options appear, which shows that its powerful functions are the  database . , ef, object, excel 

 

 

2. Here select database - Next - select connection (No is new, Yes is already existing.) Write query in sqlstring (stored procedure is supported here)

select *from User——Next——No problem with preview——finish builds a query like this

3. After making the Report layout, pull an XRtable in Details/groupHerder with three default cells, then write the column name in each Cell in the GroupHeader, select a cell in the Cell in Details, and bind the column name as shown below. Save and run the program

The code is still the same as last time. No change

final effect

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325019334&siteId=291194637