Click here to Skip to main content
15,883,829 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have develop a project in wpf.I use crystal Report for reporting.i have three reports on my project. when i open the report first time it will opens then next time i try to open means it will show this error "A first chance exception of type 'System.ArgumentNullException' occurred in SAPBusinessObjects.WPF.ViewerShared.dll" and the ERROR MESSAGE is showed as "Value cannot be null.Parameter name: resourceKey"?. Please any one help to fix the problem?.
Posted
Comments
naveedkhn3 2-Oct-15 3:15am    
What you do first when u open the View before that Just Update the paramenter field,so that u can pass your field, and can get the value.if you made any changes in the procedure you need to update the fields in the crystal report.

its simple that the parameter you are passing on page refresh it become null .On page load time or means first time the page open value is there in parameter second time when you press button its post back and value become null try to debug the parameter passing code
 
Share this answer
 
I have researched a lot for the issue and later found out that it is the problem with the runtime /developer versions of SAP crystal report. Probably the report might be created in one version (for eg: 13.0.6) and right now you may be testing with a newer version (a new runtime/ developer version 13.0.12). In order to resolve the issue, remove all versions of SAP crystal report from your machine, delete the SAP folder from program files, restart and install the old version of CR and test.

Thank you! All the best!
 
Share this answer
 
v4

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900