cancel
Showing results for 
Search instead for 
Did you mean: 

CRYSTAL REPORT RUNTIME ERROR

Former Member
0 Kudos

HI All,

We have completed major upgrade VC++ to MSVS2010 MFC Application and Seagate CR 6.0 to CRVS2010,

I have used CR Viewer 13.0 and i have written code in C#.

when i assign & load Report using CR Viewer , i am getting runtime error, below mentioned error message,

i have installed CRVS2010 & CR .NET Frame work 4.0 ,installed in development machine. same codeing i have written in sample application ,that is working fine but my main application i have inculded my dll file then i getting in this error.

I given references below mentioned three dll files.

CrystalDecisions.CrystalReports.Engine.dll

CrystalDecisions.Shared.dll

CrystalDecisions.Windows.Forms.dll

Please any one look at that message and give me solution for in this issue.

" AN Unhandled exception of type 'SYSTEM.IO.FileloadException' occurred in gpsmg32.dll

Additional information : Could not load file or assembly 'Crystaldecisions.CrystalReports.Engine, Version 13.0.200.0,Culture=neitral, Publickey Token=692fbea5521e1304' or one of its dependencies. Provider DLL failed to initialize correctly.(Exception from HRESULT : 0x8009001D)

Thanks & Regards,

Esha Abdullah M

Edited by: Esha Abdullah on Sep 21, 2011 7:44 PM

Accepted Solutions (1)

Accepted Solutions (1)

former_member183750
Active Contributor
0 Kudos

What is the version of the CR assemblies referenced in your project?

Ludek

Follow us on Twitter http://twitter.com/SAPCRNetSup

Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Former Member
0 Kudos

CrystalDecisions.CrystalReports.Engine.dll - 13.0.1.220

CrystalDecisions.Shared.dll -13.0.1.220

CrystalDecisions.Windows.Forms.dll -13.0.1.220

former_member183750
Active Contributor
0 Kudos

You getting this on your develpment computer or after you deploy the app? If after you deployed the app, what CR runtime file (MSM \ MSI) did you use?

If on your development computer, see if one of our sample apps will work for you. I'd suggest vbnet_win_simplepreviewreport from [here|https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples].

- Ludek

Former Member
0 Kudos

Hi Ludek,

Thank you your positive reply...

I have using Development machine, as per you suggested sample application link, i have downloaded you mentioned project (vbnet_win_SimplePreviewReport) and run the project its working fine.

i don' t know where is there problem, i have used same dll files & same coding method, but since i got error,

i think when i call that project , that time also showing error, i have installed Crystal Reports for .NET Framework 4.0 .

Please look at the below i mentioned calling menthod & code, PLEASE PROVIDE ME A SOLUTION FOR IN THIS ISSUE.

GpsMg32::REPORTVIEWER ^dlg = gcnew REPORTVIEWER(sReportPath,1,sWindowTitle,1,2);

dlg->Show();

Reportviewer. h file

-


REPORTVIEWER(CString sReportName,

const int& nOutputTo,

CString sWindowTitle /=""/,

short nCopies /=1/,

const int& nOrientation /= DMORIENT_LANDSCAPE/);

Reportviewer.cpp file

-


CrystalDecisions::CrystalReports::Engine::ReportDocument^ reportDocument = gcnew CrystalDecisions::CrystalReports::Engine::ReportDocument();

reportDocument->Load("C:
Crystal
CRNET
vbnet_win_SimplePreviewReport
vbnet_win_SimplePreviewReport
World Sales Report.rpt");

crystalReportViewer1->ReportSource = reportDocument;

Application::DoEvents();

THANKS IN ADVANCE

former_member183750
Active Contributor
0 Kudos

The fact that the sample app works is actually good news. Now we have to figure out the diffs between your app and the sample app. Use the [Modules|https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip] utility to do that. First run the sample app, run Modules, save the log. Close the app. Run your app, create a new log in Modules. Then use the comparison feature of Modules to determine dll differences between the apps. Umm, you may also want to try a new simple, test C# or VB app and see if that will work for you.

- Ludek

Former Member
0 Kudos

THANKS YOU FOR ALL YOUR SUPPORT...............

I have successfully migrated Seagate Crystalreports 6.0 to SAP CrystalReports 2010 .....................

Without your support .. i can't possible in this MAJOR Upgrade...

ONCE AGAIN THANK YOU EVERY BODY........

THANKS & REGARDS,

ESHA ABDULLAH M

SAP CRYSTAL REPORT DEVELOPER

INDIA

Answers (0)