I cannot get the Designer to work anytime I have report logic that references an external DLL. This includes using the Enterprise Library DLLs for data access and also using user-defined functions that reference external dlls for formatting.
Here's a sample _NeedDataSource event. It works fine at run time in the viewer, but the designer does not work at all. (just like with external format functions I reference).
Any suggestions?
Here's a sample _NeedDataSource event. It works fine at run time in the viewer, but the designer does not work at all. (just like with external format functions I reference).
| private void rptCaseLoad_NeedDataSource( object sender, EventArgs e ) |
| { |
| DataSet ds = new DataSet( ); |
| Database db = DatabaseFactory.CreateDatabase( ); |
| using ( DbCommand cmd = db.GetStoredProcCommand( "spCaseDetail" ) ) |
| { |
| cmd.CommandType = CommandType.StoredProcedure; |
| db.AddInParameter( cmd, "@caseID", DbType.Int32, iCaseID ); |
| ds = db.ExecuteDataSet( cmd ); |
| } |
| ( sender as Telerik.Reporting.Processing.Report ).DataSource = ds; |
| } |
Any suggestions?