I'm using Crystal report 2010 with VS 2010, and i have 2 web projects, the first is the one that my organization works with and the second is a dummy one - this is for test only -, my problem is when dealing with charts or pictures, every thing OK in the second project, but in the first one charts and pictures are displayed very will in crystal report designer, and preview, but nothing is displayed at run time. the environment of the 2 projects are identical (the same referenced DLLs, and from the same location "Local Folder", the same binding method "Objects", the same registered and add "Keys, and Assemblies" in the web.config).
kindly, note that one of the differences between the 2 projects is that the working one was created after installing Crystal Reports 2010 for VS, and the primary one was created before the installation.
please, does any body has an idea where is the mistaken part, or where I'm i suppose to search about the malfunctioning configuration, or ...... etc.
I'm sorry to bother you all the previous period,
we discovered the issue source, it is an htppModule related to our security module, we do not know what is cause of this conflict tell now, but at least we knew the source, every thing is OK, if the registration of this httpModule removed from the web.config.
Sorry again, and most thanks.
Related
As anyone who has used Jasper Reports would know, a single report in Studio does not always encapsulate everything that a report is. There are Input Controls that can exist outside of the report as well as Queries that may be responsible for populating the controls.
Jaspersoft does not make it easy to obtain and version the entities that exist outside of the normal report JRXML files that you design in Studio. As of now, the only way I've been able to even somewhat accomplish this is like so:
Create Query and Input Control in DEV environment
Export the ZIP file that Jasper generates for said Query and Control
Extract the files and blow away or hand-modify the connection information in the Data Source, because Jasper packages everything associated with an item.
Add necessary files to SCM.
ZIP files up.
Import ZIP file in to QA environment, and then Staging, and so on.
While this can be somewhat automated, it seems like anyone working with Jasper has to jump through hoops to actually version their reports. Am I missing something, or is this really just the nature of things in this space?
I have a main report which calls a sub report which calls another sub report.
I have all 3 in a dir called dash2 in report studio.
When I use report studios deployment to *JasperReports Server * on the main report, it also seems to deploy the first sub report (but not the sub sub report). Well, If I right click on the report and select edit, then Controls and Resources, it lists the sub report.
If i manually deploy all 3 reports one by one, I see all three in the report folder in Jaspersoft Studio. However, if I try to run the main report, I get:
Error filling report
net.sf.jasperreports.engine.JRException: Resource not found at : dash2/dash-kpi.jasper
So its looking for the sub report in dash2. So I created a dir called dash2 under the main report folder, and copied the sub reports into it. Same error. So I manually reproduced the same structure as in report studio -no joy. It can never find the sub report.
In the main report, it has this entry:
<subreportExpression><![CDATA["dash2/dash-kpi.jasper"]]></subreportExpression>
Any ideas how to fix?
It works fine in report studio.
Edit: tried removing the "dash2/" from in front of the resource name. didn't help.
Edit2: tried chaing all occurunces of dash2/xxx.jasper to repo:xxx.jrxml. This breaks jasper studio in that:
the reports no longer work in studio
when you upload the main report, it no longer recognises the dependent sub reports and doesn't upload them.
I tried manually deploying all reports, but there is no way to link a main report with an existing sub report in jasper server. The only option they offer is to edit the main report, and manually upload the jrxml files as resources. I tried this, but didn't help, still cant find them:
Repository file resource /reports/dashboard_files/dash_kpi.jrmxl could not be loaded
Interestingly, its using a dir called dashboard_files which doesnt exist. There is no reference to this dir in any of the reports jrxml files.
After much pain, I found a solution. It seems that jasper studio is not really good with nested sub reports. Here is a solution at a high level, which applies to server 5.6 and Studio 5.6 at least:
Start off with the reports with sub reports defined as "xxx.jasper" in studio.
Deploy the main report to jasper server. It will ask you if you want to deploy the sub reports (but not their sub reports). However, it does not do it right, and we have to fix it.
Now connect to the server from studio (aka repository explorer)
Your report will be under SErvers->your server->Reports->reportname->Main.jrxml. Right click on it and select properties. Select Resource Editor Tab.
copy the Parent Folder path. e.g. /reports/myreport_files
Now go back to studio. Edit every place in all your reports and sub reports where you have "xxx.jasper" and replace them with "repo:/reports/myreport_files/xxx.jrxml"
save everything
Deploy the main report again.
in Jasper Server, find the report, right click on it and select EDIT
Click on "Controls and Resources".
Delete all the resources
Now Add back each sub report by uploading by hand each jrxml file. Make sure you give it the same name and ID ans the file, e.g. my_sub_report.jrxml
pray it works.
NOTE 1: if you have any "-" in your subreport names, they will be converted to "", and it wont find them. rename all your subreports with "-" to use "" insead, remove and re-deploy.
NOTE 2: Now your reports wont work in studio. Nice one Jasper. You can try using parameters, e.g:
$P{IsOnServer} ? "repo:/reports/myreport_files/my_sub.jrxml" : "my_su.jasper"
And create the parameters defaulting to true, but I could not get this to work.
Main credit to these guys:
http://notsomany.wordpress.com/2011/11/07/subreports-within-ireport-jasper-reports-server/
Linking subreports in iReport so they also work in Jasper server
I have overcame this problem by simply NOT using the onServer parameter.
Should you put just the file name, the Studio can grab this file and deploy it automatically.
Strangely enough, this works on the server as well.
System:
Windows 7 with Crystal Reports 2013 Demo.
Windows 7 with Crystal Reports 11.5.12.1838
Initially Dynamic cascading parameters were not working for existing reports written by other analysts. The analysts are using XP systems. When they open the reports, their prompts populate correctly. Mine are blank. We downloaded 2013 to see if it was fixed in this version since XI is so old and is not officially supported on Windows 7. For one day the reports dynamic prompts were populating correctly and we were all excited. I continued on modifying the report, but had an issue and the application got closed non-gracefully. Now no dynamic prompts are populating in the report that was working yesterday. And again, any report that I open with dynamic cascading prompts do not populate. This has been an ongoing issue that we were excited that a resolution had appeared, but now we are back to square one. One of the other analysts was able to open the report again in XI and see the prompts correctly. This is a standalone report. We do not have a Crystal Report Server. We do not have Business View Manager. This issue is occuring in the designer for crystal reports on my computer only. When i copy the report to our test server and use our third party viewer(datalink) the prompts work fine.
Furthermore: Originally because of non-administrative privileges, I had my ODBC Drivers setup in user DSN. With the help of an Admin user, i setup the drivers in System DSN. I reloaded the original production report that I was trying to modify and set the location to my new dev odbc connections. But that still did not load the dynamic parameters.
From Crystal Reports Designer
From Datalink Viewer
Any suggestions on how to troubleshoot this?
This looks like a connection issue. Is the new OS 64 bits ? If it is, you need to create the ODBC connection using the tool placed in this path: C:\Windows\SysWOW64\odbcad32.exe
OK. This appears to be one solution. I was working with another laptop, that had a working crystal reports version. BUT, i had to do the whole maximumrowsets fix. Well, I must have messed up because the working crystal reports started doing the same thing. Oops. So I uninstalled crystal reports, deleted any of the registry keys associated with it, deleted any of the folder locations, rebooted and reinstalled and voila...it worked again. so then i used
this site and it continued to work as desired. This probably isnt the only solution, but it definitely worked for me.
I'd also like to thank campagnolo-1 for his tireless assistance.
Unsure if anyone on here could lend a hand, but I thought I'd give it a shot. Google wasn't too useful.
I have a report that I was working on all yesterday in Crystal Reports XI. I thought it was all good and working, so I closed the file (big mistake). Now, I try and open it again, and it's not letting me.
I get the following errors:
"An Ole object in this report could
not not be loaded. It has been
replaced with a blank object"
So then crystal tries to load my report with it's changes (I think), and then I get:
" This document could not
be opened. It does not appear to be a
Crystal Report document. This document
has the expected file extension
(.RPT), but it seems to be corrupted.
If this report used to work, try
opening it with a different version of
Crystal reports and if that still does
not work, please contact your
administrator".
I don't have another version of Crystal to check it with, and I'm pretty much the local admin for crystal, and I have no idea what to do.
Crystal wasn't letting me save over previous versions of this report yesterday, and now none of the 6+ versions I have are loading.
Can anyone suggest anything to help?
I got around this error by recreating the entire report.
I have no idea what the issue was, but after I spend 2 hours recreating it, it now works as intended.
I'm guessing that if anyone else receives the terminal Corruption error, they should just throw it away and start again.
You can try opening it in Visual Studio, which may or may not have the same version of Crystal. But it's a binary file, and if that gets munched, I'm not sure you have much recourse.
I have a problem with the CrystalReportsViewer's toolbar that puzzles me. Let's say I have a report that consists of five pages.
If I click the next button, I get to page two as expected, but if I press it again, page two reloads!
I can click the last page button and get to the last page, but if I try to go to the previous page from there, I end up on page one again.
So, no matter how many pages my report has, I can only get to the first, the second and the last one!
These problems began when we migrated from Windows Server 2003 to 2008. We're running Crystal Reports 10 which perhaps have problems under 2008? Can any of 2008's new security stuff be responsible for this?
Has anyone seen this behaviour before and know how to solve it? Thanks!
Never seen that Dev tool before so it won't be in our supported platforms.
I recall something similar and it was due to the screen resolution or zoom level.
Have a look at the source code of the page to see what it is doing. Compare it to a VS .NET ASP.NET app to see what the differences are.
I haven't seen this weird behavior before, but I know from a project I worked on a few months ago that Crystal Reports isn't supported on Win2k8 / IIS7 yet. I wish I could find a link that stated that for you, but I remember running into that problem.
I had to go the route of setting up a virtual server to host Win2k3, just so I could publish some reports.
Oops, it seems this isn't considered programming related (even though there's been a certain amount of programming to show the reports and that the CrystalReportViewer is a server control), so sorry about that.
Thanks Ken for your input. I bet i doesn't help that we're running an old version of CR as well. Maybe your route with the virtual 2003 machine is the best to go.