Click here to Skip to main content
15,885,366 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

Im using Visual studio 2008 .How can i set number of rows to 50 or 100 to be displayed per page in rdlc reportviewer.


Thanks in advance
Posted

1 solution

To do this, create a group in a data region, add a page break to the group, and then add a group expression to group by a specified number of rows.

The below expression, when set as the group expression, assigns a number to each set of 50 rows. When a page break is defined for the group, this expression results in a page break every 50 rows.

VB
=Int((RowNumber(Nothing)-1)/50)


For more details refer the link below :

Report Expressions[^]

Hope this helps.
 
Share this answer
 
v2
Comments
DepiyaReddy 28-Oct-12 20:56pm    
Hi ,I tried the expression suggested by you,its working for 5,10 or 20 rows but not above than that(not working for 30 or 50 rows).I have 78 records but.what would be the reason?
Rajesh Kariyavula 29-Oct-12 0:03am    
Please check the Page Size that you are using and the number of records it fits in each page
DepiyaReddy 29-Oct-12 23:02pm    
Group expression works by changing the InteractiveHeight but when exporting to excel,i can only see 1st page rows .But without giving the group expression and by only changing the InteractiveHeight to 165 cm ,i can see 200 rows per page and which also displays all rows when exported with excel which is good.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900