Report viewer screens are not working if dataset is not defined (correctly) in screen switch function - Invalid .rdl file

Report viewer screens are not working if dataset is not defined (correctly) in screen switch function - Invalid .rdl file

Summary

Message shown is when build Runtime files:

System.ArgumentNullException: 'dataType' argument cannot be null.~~Parameter name: dataType~~ at System.Data.DataColumn..ctor(String columnName, Type dataType, String expr, MappingType type)~~ at System.Data.DataColumn..ctor(String columnName, Type dataType)~~ at ManagedReportingWrapper.ReportForm.CreateTableFromColumnDescription(String TableName, String[,] sColumnDescription)~~ at ManagedReportingWrapper.ReportForm.AddTableDef(UInt32 uTable, String sName, String[,] sColumnDescription)~~ at ManagedReportingWrapper.ManagedReportingWrapper.AddReportTable(UInt32 iTableType, String strTableName, Object oColumnDescription)

Description

Message shown is when build Runtime files:

System.ArgumentNullException: 'dataType' argument cannot be null.~~Parameter name: dataType~~ at System.Data.DataColumn..ctor(String columnName, Type dataType, String expr, MappingType type)~~ at System.Data.DataColumn..ctor(String columnName, Type dataType)~~ at ManagedReportingWrapper.ReportForm.CreateTableFromColumnDescription(String TableName, String[,] sColumnDescription)~~ at ManagedReportingWrapper.ReportForm.AddTableDef(UInt32 uTable, String sName, String[,] sColumnDescription)~~ at ManagedReportingWrapper.ManagedReportingWrapper.AddReportTable(UInt32 iTableType, String strTableName, Object oColumnDescription)

Solution

If a dataset is not defined within a picture switch function (or wrong defined) this dataset is temporary created with the settings from the rdl file.

Information

DEMO Project was affected.



Issue Number: 31279
Fixed on Date: 7.2.2014
Versions: 7.11 0 BUILD 10238