Crystal Report 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
No Valid Report Source Is Available Crystal Reports Asp Net C#
Discuss the workings and policies of this site About Us Learn no valid report source is available next page more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask 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 up Dynamic query for Crystal Report, “No valid report source is available.” up vote 1 down vote favorite I am trying to create a Crystal Report with a dynamic data source. When i click the report button, the crystal report shows up just fine, but when i click any button the Crystal Report tool bar (i.e. Next page, Export To, etc.), i get a pop with the Error "No valid report source is available." Here is what my C# code looks like: private void GenerateReport() { using (DataContext reports = new DataContext()) { var results = //Linq Query; ReportDocument pr = new ReportDocument(); pr.Load(Server.MapPath(@"CrystalReport1.rpt")); pr.SetDataSource(results.ToList()); CrystalReportViewer1.ReportSource = pr; CrystalReportViewer1.DataBind(); } } Any help would be greatly appreciated. Thanks in advanced. c# asp.net crystal-reports-2010 share|improve this question asked Jul 5 '12 at 18:21 Arm0geddon 218523 add a comment| 2 Answers 2 active oldest votes up vote 1 down vote accepted So, I could not get this working with the other way, but i did get it to work going about it a different way. First, i added a CrystalReportSource control to the aspx page,
ASP.NET Community Standup Forums Help Home/ASP.NET Forums/Advanced ASP.NET/Crystal Reports/Crystal Reports Viewer - No valid report source is available Crystal Reports Viewer - No valid report source is available [Answered]RSS 1 reply Last post May 16, 2012 05:23 PM by markrowsoft ‹ Previous Thread|Next Thread › Print Share Twitter Facebook Email Shortcuts Active Threads Unanswered Threads Unresolved Threads Support Options Advanced Search http://stackoverflow.com/questions/11350237/dynamic-query-for-crystal-report-no-valid-report-source-is-available Reply markrowsoft None 0 Points 2 Posts Crystal Reports Viewer - No valid report source is available May 16, 2012 03:24 PM|markrowsoft|LINK I have web application using the Crystal Reports Viewer webpart and I am setting the report source by manually loading rpt file in the code behind http://forums.asp.net/t/1804449.aspx?Crystal+Reports+Viewer+No+valid+report+source+is+available file into a crystal reports object, setting database logon/ parameters, and then setting the viewer's datasource to this object. The report displays but only the first page. A "No valid report source is available" error is shown if you try to drill down the group tree or navagate to the next page. This is using Crystal Reports for Visual Studio 2010. What am I missing? Reply markrowsoft None 0 Points 2 Posts Re: Crystal Reports Viewer - No valid report source is available May 16, 2012 05:23 PM|markrowsoft|LINK I figured it out: Posted answer here: http://www.net4geeks.com/pc/microsoft/net-code-developer/34-crystal-reports-no-valid-report-source-is-available.html ‹ Previous Thread|Next Thread › This site is managed for Microsoft by Neudesic, LLC. | © 2016 Microsoft. All rights reserved. Privacy Statement| Terms of Use| Contact Us| Advertise With Us| CMS by Umbraco| Hosted on Microsoft Azure Feedback on ASP.NET| File Bugs| Support Lifecycle
Tips/Tricks Top Articles Beginner Articles Technical Blogs Posting/Update Guidelines Article Help Forum Article Competition Submit an article or tip Post your http://www.codeproject.com/Questions/433235/No-valid-report-source-is-available-error-in-cryst Blog quick answersQ&A Ask a Question View Unanswered Questions View All http://www.codeproject.com/Questions/580786/Noplusvalidplusreportplussourceplusisplusavailable Questions... C# questions Linux questions ASP.NET questions SQL questions VB.NET questions discussionsforums All Message Boards... Application Lifecycle> Running a Business Sales / Marketing Collaboration / Beta Testing Work Issues Design and Architecture ASP.NET JavaScript C / C++ / MFC> ATL / WTL / STL no valid Managed C++/CLI C# Free Tools Objective-C and Swift Database Hardware & Devices> System Admin Hosting and Servers Java .NET Framework Android iOS Mobile SharePoint Silverlight / WPF Visual Basic Web Development Site Bugs / Suggestions Spam and Abuse Watch features Competitions News The Insider Newsletter The Daily Build Newsletter Newsletter archive Surveys Product Showcase Research no valid report Library CodeProject Stuff communitylounge Who's Who Most Valuable Professionals The Lounge The Insider News The Weird & The Wonderful The Soapbox Press Releases Non-English Language > General Indian Topics General Chinese Topics help What is 'CodeProject'? General FAQ Ask a Question Bugs and Suggestions Article Help Forum Site Map Advertise with us About our Advertising Employment Opportunities About Us Ask a Question All Questions All Unanswered FAQ No valid report source is available error in crystal report Rate this: Please Sign up or sign in to vote. See more: C# ASP.NET After creating crystal reports in asp.net,C# when i have to go on next page.following error occurs. No valid report source is available Plz help me.. Posted 1-Aug-12 23:49pm tusharN373 Updated 22-Jul-16 2:51am Add a Solution 2 solutions Top Rated Most Recent Rate this: Please Sign up or sign in to vote. Solution 1 Accept Solution Reject Solution Refer some similar threads: No valid report source is available- crystal reports[^] No Valid repo
Tips/Tricks Top Articles Beginner Articles Technical Blogs Posting/Update Guidelines Article Help Forum Article Competition Submit an article or tip Post your Blog quick answersQ&A Ask a Question View Unanswered Questions View All Questions... C# questions Linux questions ASP.NET questions SQL questions VB.NET questions discussionsforums All Message Boards... Application Lifecycle> Running a Business Sales / Marketing Collaboration / Beta Testing Work Issues Design and Architecture ASP.NET JavaScript C / C++ / MFC> ATL / WTL / STL Managed C++/CLI C# Free Tools Objective-C and Swift Database Hardware & Devices> System Admin Hosting and Servers Java .NET Framework Android iOS Mobile SharePoint Silverlight / WPF Visual Basic Web Development Site Bugs / Suggestions Spam and Abuse Watch features Competitions News The Insider Newsletter The Daily Build Newsletter Newsletter archive Surveys Product Showcase Research Library CodeProject Stuff communitylounge Who's Who Most Valuable Professionals The Lounge The Insider News The Weird & The Wonderful The Soapbox Press Releases Non-English Language > General Indian Topics General Chinese Topics help What is 'CodeProject'? General FAQ Ask a Question Bugs and Suggestions Article Help Forum Site Map Advertise with us About our Advertising Employment Opportunities About Us Ask a Question All Questions All Unanswered FAQ No valid report source is available. ASP.NET 2010 Rate this: Please Sign up or sign in to vote. See more: CrystalReports I am trying to create a Crystal Report with a dynamic data source. When i click the report button, the crystal report shows up just fine, but when i click any button the Crystal Report tool bar (i.e. Next page, Export To, etc.), i get a pop with the Error "No valid report source is available." My Report viewer coding: Imports System.IO Imports System.Data Imports System.Data.SqlClient Imports System.Web.HttpApplication Imports CrystalDecisions.CrystalReports.Engine Imports CrystalDecisions.Shared Imports CrystalDecisions.Web Imports CrystalDecisions.ReportSource Partial Class Reportviewer Inherits System.Web.UI.Page Public str As String Public rptname As String Public sf As String