Subreport not displaying data
-
19-09-2019 - |
Question
My Crystal Report is generated in Visual Studio 2008. I've linked the subreport parameters and everything runs fine when I run it from the report previewer within visual studio.
But when I deploy the report to the production server, the sub-reports don't have any data at all, even though the main data runs fine. What might be causing the subreports to stop working on the production server?
Solution
- Did you check DataSources for main report and sub report?
- Did you check if sub report is embedded in the main report?
- Did you deploy the Sub report if it is not embedded?
- How many and what kind of parameters do you use Dates, Strings, Integers ...
- What is the error do you get? This should give you some directions where to look for a problem.
- Can you try some other sub reports instead of the failing one.
And finally, use the old computer trick. Remove the sub report and then create/embed it again.
OTHER TIPS
- Right click your subreport
- Open "Change Subreport Links"
- Make sure you have chosen one field from the "Available fields" section.
In case you have parameters in your report: Have you tried showing the report from code instead of previewer? Is that different? If yes then probably there's a mismatch between your data input from code and previewer
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow