Skip to Content
0

subreport.SetDataSource causing Exception thrown: 'System.OverflowException' in mscorlib.dll

Feb 15, 2017 at 09:58 PM

20

avatar image

I have a Report with a SubReport. The SupReport contains 3 tables; "Header", "Patient","Sample". I have created a dataset (ds) in C# (Visual Studio 2015) with multiple tables, three if which are the 3 tables above. I create a New DataSet, "dsPmHeader" and Copy from the ds DataSet to the dsPmHeader DataSet;

DataSet dsPmHeader = new DataSet(); dsPmHeader.Tables.Add(comboReport.pm_Screen.Tables["Header"].Copy()); dsPmHeader.Tables.Add(comboReport.pm_Screen.Tables["Patient"].Copy()); dsPmHeader.Tables.Add(comboReport.pm_Screen.Tables["Sample"].Copy()); subreport.SetDataSource(dsPmHeader);

When the "subreport.SetDataSource(dsPmHeader);" is called an

Exception thrown: 'System.OverflowException' in mscorlib.dll occurs twice

I have checked these three Tables in the DataSet and all fields have a Value or is [Empty].

I have checked the Dataset Definition .xsd and verified that all fields have a default value.

The entire code is running in a thread.

Any idea why I am getting this Exception?

Thanks

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers