Checkbox error when no data
I have a report band that contains a checkbox control. The checkbox's datacolumn is bound to a string column in the datasource.
If the datasource returns an empty dataset , then I get the error "Input string was not in a correct format." when I prepare the report.
What is the work around for this - I have heaps of check boxes
If the datasource returns an empty dataset , then I get the error "Input string was not in a correct format." when I prepare the report.
What is the work around for this - I have heaps of check boxes
Comments
The type of Data Column which bounded to CheckBox should be bit which value ( 0 Or 1 )
so you have two solutions :
1) Convert data column type from sting to bit , and Assign 0 as default value
2) Write a simple Expression that convert the empty string value to 0 , ( if you don't know how , replay and I will write Example )
hope this help
1. Not an option unfortunately (I am calling a stored procedure and have no ability to determine the type returned)
2. Yes please [img]style_emoticons/<#EMO_DIR#>/smile.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> As an aside, I've noticed that the checkboxes, where a data row exists, will be checked when the data equals "T" and not checked when the data equals "F". But this is only if the datacolumn is entered as "Datasource.Fieldname" - not if the datacolumn is "[Datasource.Fieldname]". Thanks D[/img]