Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET SSRS Reports
heyy...
 
I am using the SSRS report ..when I click navigation button after showing the report ( it is in one page) the next page navigation button is shown ..when i click it ..It shows following error
("page navigation is out of range")
 
How to solve this ...
 
I search a lot ...many of saying give
 
if (IsPostBack)
                return;
But it won't work....
 
My Code is below..
<rsweb:ReportViewer ID="rvPriceListDetails" BackColor="White"  runat="server" ProcessingMode="Remote"   Width="100%"  ZoomPercent="100" AsyncRendering="true">
         </rsweb:ReportViewer>
 
Code
-----
 
private void InitializeReportCredentials()
       {
           string server = ConfigurationManager.AppSettings["ReportServer"];
           string reportpath = ConfigurationManager.AppSettings["ReportsFolder"];
           string username = ConfigurationManager.AppSettings["Username"];
           string password = ConfigurationManager.AppSettings["Password"];
           string Domain = ConfigurationManager.AppSettings["Domain"];
           rvPriceListDetails.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Remote;
           if (IsPostBack)
               return;
 
           rvPriceListDetails.ServerReport.ReportServerUrl = new System.Uri(server);
           rvPriceListDetails.ServerReport.ReportPath = string.Concat(reportpath, ReportName);
           rvPriceListDetails.ShowParameterPrompts = true;
           rvPriceListDetails.ServerReport.ReportServerCredentials = new ReportCredentials(username, password, Domain);
           rvPriceListDetails.ServerReport.Refresh();
           ReportParameter UserName = new ReportParameter("UserName", SessionManager.Current.UserObject.UserName);
           rvPriceListDetails.ServerReport.SetParameters(new ReportParameter[] { UserName });
       }
Posted 19-Apr-13 22:37pm

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

  Print Answers RSS
0 OriginalGriff 587
1 Sergey Alexandrovich Kryukov 519
2 Maciej Los 305
3 BillWoodruff 250
4 Mathew Soji 195
0 OriginalGriff 7,356
1 Sergey Alexandrovich Kryukov 6,777
2 DamithSL 5,461
3 Manas Bhardwaj 4,916
4 Maciej Los 4,475


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 20 Apr 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100