OK, I'm using a ObjectDataSource. I know the Data Source works fine, because if I plug it into a telerik grid I have no issues at all.
When I try to show it in the report viewer in aspx I have to go through a lot of stuff, but the report works... so it's not a show stopper.
It would be nice to be able to view small changes I make on the report with the designer preview instead of having to run my project every time I want to see if a font change looks right or not.
The error message I'm getting is:
An error has occurred while processing Report 'HealthInspectionRpt':
Exception has been thrown by the target of an invocation.
------------- InnerException -------------
Object reference not set to an instance of an object.
this is in the designer.
when I view it with a report viewer on an aspx page, this is how I have to load it from the code behind...
I was thinking that the commented out part here at the bottom would have covered it... but it gives me the same error as the designer.
Anyone ever run into this issue?
Thanks,
Dustin
When I try to show it in the report viewer in aspx I have to go through a lot of stuff, but the report works... so it's not a show stopper.
It would be nice to be able to view small changes I make on the report with the designer preview instead of having to run my project every time I want to see if a font change looks right or not.
The error message I'm getting is:
An error has occurred while processing Report 'HealthInspectionRpt':
Exception has been thrown by the target of an invocation.
------------- InnerException -------------
Object reference not set to an instance of an object.
this is in the designer.
when I view it with a report viewer on an aspx page, this is how I have to load it from the code behind...
if
(!Page.IsPostBack)
{
Telerik.Reporting.ObjectDataSource obDS =
new
Telerik.Reporting.ObjectDataSource();
obDS.DataSource =
typeof
(HealthInspectionRptData);
obDS.DataMember =
"GetHealthInspectionReport"
;
obDS.Parameters.Add(
new
Telerik.Reporting.ObjectDataSourceParameter(
"ProgramYear"
,
typeof
(
int
),
(
int
)min2ProgramYearChosen));
obDS.Parameters.Add(
new
Telerik.Reporting.ObjectDataSourceParameter(
"ProgramID"
,
typeof
(
int
),
(
int
)mudtProgramID));
Telerik.Reporting.Report rpt =
new
HealthInspectionRpt();
rpt.DataSource = obDS;
rptViewer.Report = rpt;
rptViewer.RefreshReport();
//HealthInspectionRpt hInspRpt = new HealthInspectionRpt(min2ProgramYearChosen, min4SponsorID, mudtProgramID);
//rptViewer.Report = hInspRpt;
}
I was thinking that the commented out part here at the bottom would have covered it... but it gives me the same error as the designer.
Anyone ever run into this issue?
Thanks,
Dustin