on ‎2010 Oct 01 8:29 PM
Hello,
I'm using CR 2008 and VS 2008 (ASP.NET 3.5),
I have a small problem with one report. It's located on the page where except for the report viewer there are some other fields that the user can update.
When the user opens this page, the report is displayed OK, no errors.
After he updates some fields , the report is reloaded OK, but on top of the report there is a message from the viewer:
"Value cannot be null. Parameter name: inputString".
If the user updates the page again, then the error disappears and everything works fine.
So everything actually works, I'm just trying to find out where this error message is coming from and how to get rid of it.
I would appreciate any suggestions.
Thank you,
Peter
Request clarification before answering.
I'm not sure what you mean by; "After he updates some fields ".
However the behavior sounds like it may be related to some sort of a timing issue. E.g.; the updated fields are not committed when you ask the engine to run the report or something along those lines. Also, make sure you have SP 3 for CR 2008.
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK. So what I understand, these would be the steps in the app:
1)
Load a report
set parameters
logon to db
view report
unload form and report
2)
Load a report
set parameters
logon to db
view report
Error re parameters.
3)
unload form and report
Load a report
set parameters
logon to db
view report
report now works
Is th above the correct flow?
Without seeing this app, this is getting hard to troubleshoot.
Musings and assumptions and guesses;
If the vieweru2019s reportsource is set in whatever event is being fired when changing the value on one of the formu2019s controls. If the formu2019s control value (ie if he has a dropdown or textbox) is being used as one of the parameter values, then the page_init wonu2019t have that value in viewstate yet. The event needs to fire first which is one of the last things to happen in a webformu2019s lifecycle.
But like I said guesses and all that...
Ludek
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.