Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am trying to upgrade a crystal application from VS.Net 2003 to VS.Net 2008 (v10). Some of the reports work just fine in the new environment. But one of the reports does give me a hard time.
It is a little complicated, so please bear with me. The report uses a c# derived DataSet class as its Database Fields source. It also uses a DataTable as its data source. When I try to bind the report with the data source, for example, myReport.setDataSource(myDataTable);. It throws the following exception (for object format is Number):

InnerException:
{"\rError in File C:\\DOCUME~1\\SASAN\\ASPNET\\LOCALS~1\\Temp\\Template1 {0557D67F-C62D-453F-93F8-E4F14CAD884C}.rpt:\nInvalid object format name."}

StackTrace:
"   at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)\r\n   
at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)\r\n   
at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)\r\n   
at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportOptions options)\r\n   
at CrystalDecisions.CrystalReports.Engine.ReportDocument.ExportToStream(ExportFormatType formatType)\r\n   
at Hit.WebUI.ALL.Report.ReportViewer.ExportReport(ReportDocument rptDoc) in 
D:\\Working\\Ghadr\\WebUI\\ALL\\Report\\ReportViewer.aspx.cs:line 590\r\n   
at Hit.WebUI.ALL.Report.ReportViewer.btnView_Click(Object sender, EventArgs e) in 
D:\\Working\\Ghadr\\WebUI\\ALL\\Report\\ReportViewer.aspx.cs:line 803\r\n   
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)\r\n   
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)\r\n   
at System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)\r\n   
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)\r\n   
at System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData)\r\n   
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)"
Posted
Updated 28-Jun-21 3:34am
v4

1 solution

Hi,


just try to verify the database in report

Regards,
thatraja
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900