0

Used below expression to show only 50 Rows per page.

=Ceiling(RowNumber(Nothing)/50)

But still it shows only 42 rows per page. Crystal report shows perfectly fine but SSRS report doesn't.

enter image description here Please help me to solve my problem!

Pedram
  • 6,256
  • 10
  • 65
  • 87

3 Answers3

0

Presumably this is within Visual Studio at the moment?

Delete the report_name.data file so that the report is not cached.

BIDeveloper
  • 2,628
  • 4
  • 36
  • 51
0

Set the “BreakLocation” to “End” and set the “Disable” property to the expression below:

=IIf(RowNumber(Nothing) Mod 50 = 0, False, True)
Pedram
  • 6,256
  • 10
  • 65
  • 87
StevenWhite
  • 5,907
  • 3
  • 21
  • 46
  • now it shows 45 rows instead of 42. also let me tell you one more thing, when I use 40 instead of 50 it works perfectly fine so I checked my design part but it seems to correct. I have used SizeToReportContent = true. – Pedram May 04 '16 at 04:21
  • also when go to next page is show other 5 records, so 45 + 5 and then 3rd page with 46 rows and 4th page with 4 rows. :( – Pedram May 04 '16 at 04:29
  • @pedram You're getting actual page breaks confused with pages in the report viewer. If you export this to Word or Excel, the page breaks will occur every 50 lines. If they don't fit on the page, that's a separate issue. – StevenWhite May 04 '16 at 16:09
0

I found the solution from here,

Need to set the Interactive Height property of the report to zero as shown below.

enter image description here

Pedram
  • 6,256
  • 10
  • 65
  • 87
  • I was not able to find out the issue after using `Ceiling` - if it is not correct then let me know if I need to change my subject... I will change – Pedram May 04 '16 at 07:24
  • @pedram Glad this helped you. Just to clarify; this removes the paging in the report viewer, but would have no effect on an exported version of the report. – StevenWhite May 04 '16 at 16:14
  • I have checked now, it shows paging perfectly. but while exporting to pdf it breaks the page. – Pedram May 05 '16 at 04:56