Issues with Sub Reports in Crystal Reports Windows Forms? - c#

I have developed an windows application, in which I'm using Crystal Reports to generate reports. Added some sub reports in it and it's working all fine. I have added a new report and a sub report in it, The new report is not working and causing the specific error attached in screenshot below.
I have observed in the temp folder, while generating this report, The following file is created and for my other reports no such files are created. Attached the screenshot of that also for your reference. And this file causes the issue.
Can anyone help on this as I have surfed all possible solutions and anything didn't help me out. Thanks in advance.

What version of the Crystal runtime? RDC?
Does your report use dynamic parameters?
Does the problem go away if you change them to static parameters?

Related

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!

Issue with Crystal Report

When I try to create crystal report "rssdk" automatically added to my file name which cause file not found error.
Can any one suggest why this is the issue.
Thank you.
Can you please show the related code
where you are facing the issue related to it...
I guess you are not able to find the file at your location and the it fails to load that file in
server.mappath("your path");

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 to create .rdlc files?

I am using Visual Studio 2010 for generating reports using report viewer... As I am totally new to this, I don't know how to create an RDLC file and how to use it... Also, please tell me that what the connection is between Report Viewer and rdlc
Please help me out. Thanks
To add an RDLC report do Project > Add New Item... > Reporting > Report. You can also use the Report Wizard which is on the same screen. RDLC has a large wealth of information you will need to know about, so you will want to start digging into the documentation.
Creating Client Report Definition (.rdlc) Files
Here is the answer http://msdn.microsoft.com/en-us/library/ms252067.aspx
To add a new report to a project
In the Project or Web Site menu, select Add New Item.
In the Add New Item dialog box, in the Installed Templates pane, select Visual Basic or Visual C#.
In the Templates pane, select Report or Report Wizard.
If you select Report, a blank .rdlc file is added to the project. For more information on how to design reports in Report Designer, see Reporting Services Reports in SQL Server Books Online.
If you select Report Wizard, the Report Wizard is started to guide you through the steps in creating a report. For more information on the Report Wizard, see Creating Client Report Definitions Using the Visual Studio Report Wizard.

disabling datasource requirement for reports in VS2010

In VS2008, if you have an existing dataset in your project, you can add that to a new microsoft report (.rdlc file) without HAVING TO provide a datasource of any sort.
In VS2010 however, if you want to either go through the wizard, or add a dataset, you HAVE TO provide a datasource for the report to get its dataset from, is there a way to disable this?
I've found a work around in creating the rdlc in 2008 and just copying and pasting the file to a 2010 project, but that's just ridiculous.
Any help will be greatly appreciated.

Categories