Crystal report displays blank page - c#

I am using crystalreportviewers13 to display a report using Visual Studio 2010. Report gets displayed when it is loaded but when it is hosted on IIS, blank page gets displayed.
I have done necessary changes in config file and saved crystalreportsviewrs13 folder at required location. But I am still getting this error. I am not able to display the report.

From the blank page enter F12 developer tools. What errors do you see? Are there missing JavaScript files, or errors like 'bobj' is undefined?
Ensure you have actually installed the CrystalReportviewers 13 runtime on the Windows server hosting the report in IIS. You'll know it's installed if you can locate the c:\inetpub\wwwroot\aspnet_client folder
Ensure you have enabled static content under Windows features, common HTTP
features
Ensure you are not facing the .net 4.5+ folder mismatch problem with the Crystal runtime
see: Crystal Report Issue with IIS - ( bobj is undefined , Crystal report not displaying ) and Crystal Report with Visual studio 2013 aspnet_client/system_web/4_6_81 for more details

may be any of your crystal report's js file not found. just add manually that file to your viewer page. I have manually added crv.js file into viewer page and it works fine.
<script src="/crystalreportviewers13/js/crviewer/crv.js"></script>

Related

Visual Studio Asp WebForms name does not exists

I have an asp mvc 4.5 web application. I'm using vs community 2017 version 15.8.6. I need to add an aspx webform page in order to use Microsoft.Reporting.WebForms.ReportViewer control as a way to intagrate SSRS reports in the web application. I've followed some tutorials to achieve this integration, installed from nuget these references:
:
Created an aspx page with Master page and added the ReportViewer control. All looked fine, but when I attemped to build, I got this strange error:
The error is in the aspx.cs file. When I comment out the call to the control everything is fine, but I can't set the creds of the report. Here's the code:
t1.ServerReport.ReportServerCredentials = new ReportServerCredentials("userName", "password", "domain");
t1.ProcessingMode = ProcessingMode.Remote;
It is very clear that the ReportViewer control exists, when during run time the Watch 1 window display it:
Did anyone had something like this before? Ive treid restarting my local iis as described here, I've closed and open VS, restart the computer, nothing helps.
Thanks you
EDIT
I've simply create a new form. for some reason it is always refreshing, but at list it builds!
Thank you all.

Asp.net Crystal Reports changes to child reports not showing in vs2017 debug/release mode

Similar to the user in my first link, I've inherited an ASP.NET web application which displays reports using Crystal Reports. I was asked to edit some of the reports and make some new ones but my subreport changes are not being displayed when the report is called with the site running in the IDE. I realize from what I've read that the .rpt files are rolled into the DLL but how are the parent report changes working and the subreports changes not?
The report(s) I'm working on is/are a parent report that outputs information and then has 5 embedded sub reports (child?) that output the rest. (All of the report is shown in PDF format.)
I had originally not been able to see changes to either the parent or children reports but yesterday I discovered (4th day working on this problem) that when I changed the Solution Configurations dropdown from Debug to Release my changes to the PARENT report ARE correctly showing in the running site IDE. However, no matter what I change for the child reports the code that is running is the code that I was originally given/compiled and does not contain any of my subreport .rpt changes. The running file(s) has/have to be on my computer somewhere, I brought all the code here from nothing and it builds and runs in my IDE.
Things I've done/checked:
Both the child and parent report .rpts that I am editing reside in the same directory. They are in solution\subproject\Reports. I have verified changes to the files modified immediately after making a change.
I tried Starting/Stopping the IDE
I tried Starting/Stopping the computer
I tried Publishing the project after Rebuild. Publishes with no errors but the subreport changes do not show up.
I tried right clicking the individual .rpt file and choosing 'Publish ReportName.rpt'. Gave errors stating that the bin/Release/PublishOutput Web Site does not exist.
In the properties pane:
The Build Action for all the .rpt files is set to 'Content'.
I changed the Copy to Output Directory property to 'Copy Always'.
As soon as I start the site via the IDE the changed files are copied to:
solution\subproject\bin\Reports\
Now that I have the Solution Configurations dropdown set to Release, the corresponding Build/Configuration Manager is set to Release. The Platform is Any CPU and all Build checkboxes are checked. (None of the Deploy checkboxes are checked.)
I have not tried 'Deleting ASP.net temp files'.
My research includes this:
Crystal Report Not Showing Changes to Report
Then this:
Crystal Reports in ASP.NET 2.0 app - report changes not showing
Also saw something on an SAP site but lost the link...
As Franck indicates above:
'Did you update the subreports in the main report or just the subreport files separately. If you did update separately you need to open the main report and right-click the subreport and choose Re-import Subreport.'
Editing the subreport, Re-importing and rebuilding the site allowed my changes to be seen while running the IDE! Thank you so much!

RDLC Report not displaying in IE 11

I am using report viewer control for reports. Now we are facing the problem in IE 11, Report not displaying in IE 11. Its showing only loading icon all time.
You are probably usign ReportViewer version 10 or below. Probably it craches in Chrome and Firefox too.
I don't know why by in this case if you inspect the network traffic in you prefered dev tools in the browser you will see that it try to download an image that is missing and it break the code.
To sove this problem you need to update your ReportViewer dlls to the version 11 (2012) at least and take into account some problems it can bring. They are these:
Microsoft.ReportViewer.Common.dll
Microsoft.ReportViewer.ProcessingObjectModel.dll
Microsoft.ReportViewer.WebForms.dll
Is possible that after the update you will need to reference Microsoft.SqlServer.Types.dll too.
You will need to change your .config file too, basically changing the version number to 11.
To be clear, I didn't update it on the server but changed these dll to Copy To Local in Visual Studio so they are published togheter in the bin folder.
Please get in touch if you need further help. I lost a lot of time searching for this but can't remember all steps I did to solve.

CrystalReportViewer for VS 2010 Exporting to Excel (Data-Only) has Misaligned Columns

I upgraded a site to ASP.NET 3.5 using the Crystal Report Viewer for Visual Studio 2010 (13.0.3) control library (AJAX control.) Almost everything works except that the built-in Export button is now misaligning column data when exporting to "Excel (97-2003) Data-Only."
Looking into this I found several comments suggesting fixing the report's layout but I know this isn't the problem because these exact same reports exported fine with the older Crystal control (11.0.3300.)
How can I fix this? I read that by changing settings to maintain relative object position, maintain column alignment, and simplify page headers it will export correctly but I don't see a way to set these values for the default export button.
Ultimately we ended up having report writers go through and resave every report using the latest report writer version. They didn't need to manually change anything in the reports, just save them again in the newest version.
Would have preferred a programmatic solution but this did solve it.

how can I open report builder and load the server report from C# [duplicate]

I wanna show my reports in reportviewer control in visual studio and open them in edit/run mode in report builder by clicking a button
I dont know how to open report builder from my program
I have a report server
thanks any help
WebBrowser wb = new WebBrowser();
wb.Navigate("http://localhost/ReportServer/ReportBuilder/ReportBuilder_3_0_0_0.application?/Reports/ProductsReport");
where Reports/ProductsReport is the path to my report
see this
If I'm understanding your question correctly, then this is the answer:
http://social.msdn.microsoft.com/Forums/en-US/sqlreportingservices/thread/8e0d8b0f-b1c2-44cc-9c52-9f9c1b82281e/
The best way to embed an SSRS 2008 R2 report into a form is to deploy
the report to the report server and then use the Remote execution mode
in the Report Viewer control. The RDLC format used with local
execution mode doesn't yet support the newer RDL specifcation that is
created with Report Builder 3.0.

Categories