Subreport not displaying data

江枫思渺然 提交于 2019-12-12 15:08:39

问题


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?


回答1:


  1. Did you check DataSources for main report and sub report?
  2. Did you check if sub report is embedded in the main report?
  3. Did you deploy the Sub report if it is not embedded?
  4. How many and what kind of parameters do you use Dates, Strings, Integers ...
  5. What is the error do you get? This should give you some directions where to look for a problem.
  6. 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.




回答2:


  • Right click your subreport
  • Open "Change Subreport Links"
  • Make sure you have chosen one field from the "Available fields" section.



回答3:


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



来源:https://stackoverflow.com/questions/2236509/subreport-not-displaying-data

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!