Last post Dec 12, 2011 02:58 AM by Srikanth Kasturi
Dec 11, 2011 02:40 PM|jalali|LINK
I am using MS ReportViewer with RDLC File in my .ASPX page I have already defiend Parameter @ReportType. I already check Allow Empty, Allow Null in the parameters settings.
The ReportViewer Control name is rvTotalBooksByReceiver
Now I pass parameters using the following Code.
(Actually I pass a hidden field value to the parameter "ReportType")
rvTotalBooksByReceiver.LocalReport.SetParameters(New ReportParameter("ReportType", hvFixedText.Value))
But the following Error occurred.
An error has occurred during report processing.
Input string was not in a correct format "
The Hidden value contains plane UNICODE Arabic text. It doesn't even work if I hard code the value!!
It looks strange to me becuase the same code works fine in my other pages can any one help?
Dec 12, 2011 02:58 AM|Srikanth Kasturi|LINK
The error "Input string was not in a correct format" will occur mostly with the DataType of the object/field.
1. Check for the datatype of the field.
2. Check of the length of that datatype field (try increasing the length of the data field in sql)