Error No Valid Report Source Is Available
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies no valid report source is available in crystal report of this site About Us Learn more about Stack Overflow the company Business no valid report source is available next page Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask
No Valid Report Source Is Available Crystal Reports Asp Net C#
Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign
Crystal Reports No Valid Report Source Is Available Next Page
up No valid report source is available. in asp.net sap crystal report up vote 0 down vote favorite I am using Sap Crystal Report in asp.net 2010 It will shows the error no valid report source id available, when i refreshing the report or moving to next page at run time using report viewer tools and this is my coding, Dim crdoc5 As New ReportDocument() Dim crtablogoninfo5 As New TableLogOnInfo Dim crtabs5 As Tables If Not IsPostBack Then crdoc5.Load(Server.MapPath("CrStaffrecruit.rpt")) Session.Add("CrStaffrecruit", crdoc5) CrystalReportViewer5.ReportSource = crdoc5 Else CrystalReportViewer5.ReportSource = Session("CrStaffrecruit") End If crdoc5.Load(Server.MapPath("CrStaffrecruit.rpt")) Dim crconninfo5 As New ConnectionInfo() rconninfo5.ServerName = "servername" crconninfo5.DatabaseName = "databasename" crconninfo5.UserID = "sa" crconninfo5.Password = "" crtabs5 = crdoc5.Database.Tables() For Each crtab5 As CrystalDecisions.CrystalReports.Engine.Table In crtabs5 crtablogoninfo5 = crtab5.LogOnInfo crtablogoninfo5.ConnectionInfo = crconninfo5 crtab5.ApplyLogOnInfo(crtablogoninfo5) Next CrystalReportViewer5.ReportSource = crdoc5 CrystalReportViewer5.RefreshReport() If any one know pls help me... Thanks in advance visual-studio-2010 crystal-reports crystal-reports-2010 share|improve this question edited Jan 2 '12 at 10:03 Nalaka526 4,546135693 asked Jun 23 '11 at 6:19 kuppu 113 add a comment| 5 Answers 5 active oldest votes up vote 1 down vote For this please go through the following link http://forums.sdn.sap.com/thread.jspa?messageID=10951477 share|improve this answer answered Jan 2 '12 at 7:51 Khalid Rafique 681212 For those who migrated/copied code from VS2008 to [VS2010 & CR 13.0.2] environment: The initial load of the report should be in 'Page_Init' (opposed to the example referred above in SAP forum, 'cos that does not set you go past the 2nd page when you use the navigation buttons
ASP.NET Community Standup Forums Help Home/ASP.NET Forums/Advanced ASP.NET/Crystal Reports/No Valid report source is available No Valid report source is available [Answered]RSS 3 replies Last post Aug 11, 2011 11:24 AM by shirowkhan ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Support Options Advanced Search Reply shirowkhan Member 37 Points 36 Posts No Valid report source is available Aug 10, 2011 03:14 PM|shirowkhan|LINK Been trying all day to get this report done programmatically, it will work once i dynamically create it but when i try to code it it gives me the http://stackoverflow.com/questions/6450051/no-valid-report-source-is-available-in-asp-net-sap-crystal-report error, "No valid report source is available". This is my code protected void cmdShorReport_Click(object sender, EventArgs e) { ReportDocument Report = new ReportDocument(); Report.Load("C:\\Report.rpt"); crvReports.ReportSource = Report; crvReports.RefreshReport(); } I downloaded the latest version of sap crystal reports for vs2010. For the life of me i cant get this thing working programmatically. Help plz! :'( Reply necro_mancer Contributor 5231 Points http://forums.asp.net/t/1709350.aspx?No+Valid+report+source+is+available 1602 Posts Re: No Valid report source is available Aug 11, 2011 12:55 AM|necro_mancer|LINK hi there, please have a look at http://forums.sdn.sap.com/thread.jspa?threadID=1688408 ASP.NET Programming is simple - ASP.NET Hosting Reply shirowkhan Member 37 Points 36 Posts Re: No Valid report source is available Aug 11, 2011 10:48 AM|shirowkhan|LINK I'm sorry, that doesnt help due to the fact that i'm using vs2010. I cant even define a new instance of the CrystalReportSource in code behind. I just cant understand why it would allow me to load the report source when all the examples i have gone t hrough say they same thing. I just seem to find out what it is i'm doing wrong. I t ried this method and it didnt work either. (This is done below a button click method) CrystalDecisions.Web.Report Report = new CrystalDecisions.Web.Report(); Report.FileName = "Report.rpt"; crsReports.Report = Report; //This crystalreportsource is an object on the design page crvReports.ReportSource = crsReports; crvReports.Refesh(); That doesnt work either. I knwo the report loads because i've tested for it. However i jsut cant figure out why its not a valid source. Does anyone have a working report in vs2010 and if so can i see your code please. Reply shirowkhan Member
and https://scn.sap.com/thread/2144799 SafetyAsset NetworkAsset Operations and MaintenanceCommerceOverviewSubscription Billing and Revenue ManagementMaster Data Management for CommerceOmnichannel CommerceFinanceOverviewAccounting and Financial http://www.aspsnippets.com/Articles/ASPNet-Crystal-Reports-13-Visual-Studio-2010-CrystalReportViewer-Search-Button-Issue---No-valid-report-source-is-available.aspx CloseCollaborative Finance OperationsEnterprise Risk and ComplianceFinancial Planning and AnalysisTreasury and Financial Risk ManagementHuman ResourcesOverviewCore Human no valid Resources and PayrollHuman Capital AnalyticsTalent ManagementTime and Attendance ManagementManufacturingOverviewManufacturing NetworkManufacturing OperationsResponsive ManufacturingMarketingOverviewMarket with Speed and AgilityUnique Customer ExperiencesReal-Time Customer InsightsR&D/EngineeringOverviewDesign NetworkDesign OrchestrationProject and Portfolio ManagementSalesOverviewCollaborative Quote to CashSales Force AutomationSales Performance no valid report ManagementSelling Through Contact CentersServiceOverviewEfficient Field Service ManagementOmnichannel Customer ServiceTransparent Service Process and OperationsSourcing and ProcurementOverviewContingent Workforce ManagementDirect ProcurementSelf-Service ProcurementServices ProcurementStrategic Sourcing and Supplier ManagementSupply ChainOverviewDemand ManagementDemand NetworkLogistics NetworkManufacturing Planning and SchedulingResponse NetworkResponse and Supply ManagementSales, Inventory, and Operations PlanningTransportation ManagementWarehouse ManagementSustainabilityOverviewEnvironment, Health, and SafetyProduct Safety and Stewardship NetworkBrowse by IndustryAerospace and DefenseAutomotiveBankingChemicalsConsumer ProductsDefense and SecurityEngineering, Construction, and OperationsHealthcareHigh TechHigher Education and ResearchIndustrial Machinery and ComponentsInsuranceLife SciencesMediaMill ProductsMiningOil and GasProfessional ServicesPublic SectorRetailSports and EntertainmentTelecommunicationsTravel and TransportationUtilitiesWholesale DistributionBrowse Platform and TechnologyAnalyticsOverviewBusiness IntelligencePredictive AnalyticsGovernance, Risk, and ComplianceEnterprise Performance ManagementApplication Platform and InfrastructureOverviewApplication PlatformContent and Collaboratio
Party Controls ASP.Net Validators WCF Repeater Regular Expressions Yahoo API iTextSharp FaceBook Charts ListView Tweeter Google CSS SMS DotNetZip Crystal Reports Entity Framework HyperLink RDLC Report SqlDataSource Menu YouTube Twitter HTML XmlDataSource ListBox Tips DataGridView Cryptography Windows Forms LinkedIn WebUserControl RSS Feeds HTML5 Sitemap IIS LINQ DataPager URL Routing SqlBulkCopy OCR ASP.Net 4.5 Master Pages MySQL CSV Stored Procedures JSON Web Services Bootstrap Windows Service DataTable App.Config Visual Studio RadioButton CheckBox Generic Handler DropDownList FileUpload RadioButtonList CheckBoxList Flash HtmlEditorExtender Div Table AngularJS DataReader DataSet Console Applications FTP DetailsView Password TextBox Enum ComboBox Sponsored SqlDataAdapter OpenXml ClosedXml SiteMapPath Arrays FormView SqlTransaction Web.Config Cookies MVC Data Annotation Forums Contact Search Search Home Categories Forums Contact Search ASP.Net Crystal Reports 13 ( Visual Studio 2010 ) CrystalReportViewer Search Button Issue - No valid report source is available 11 Mar 2013 Mudassar Khan 3 Comments 26528Views ASP.NetIssues and ExceptionsCrystal Reports Follow @ASPSnippets Follow @ASPSnippets Here Mudassar Ahmed Khan has provided solution to the error ( No valid report source is available ) that occurs in Crystal Reports 13 with ASP.Net ( Visual Studio 2010 ) when a user tries to search using the Crystal Report Viewer Search button. Download View Demo Download FREE APIs to work with ALL kinds of office files - http://e-iceblue.com/free-api Follow @ASPSnippets Follow @ASPSnippets Recently I wrote an article Crystal Report ASP.Net Example using DataSet or DataTable in C# VB.Net and Visual Studio 2010. Soon after this a member posted a new question on www.aspforums.net Crystal Reports 13 Search Button: No valid report source is available Note: The complete reference for the Crystal Reports is available at Crystal Report ASP.Net Example using DataSet or DataTable in C# VB.Net and Visual Studio 2010. Since here we are discussing a problem faced during search only relevant code has been shown The Problem Crystal Report Viewer Control has option to search content within the data displayed in the Crystal Report But as soon as you click the Search button you will get the following error message. The Cause After investigating I managed to get to the root of the issue. Actually I placed a break point in the Page_Load event and found that the Crystal Report Viewer Control’s Search Button does a PostBack and if your code to