Quantcast
Channel: SCN : Unanswered Discussions - SAP Crystal Reports
Viewing all articles
Browse latest Browse all 4814

Why Crystal Report Opening is failed in Access 2007 application?

$
0
0

I have developed a component in VB.NET Visual Studio 2013.

This Class Library contains Crystal Report.

While testing this Class Library in Win Form application I have get error message:

CrystalDecisions.CrystalReports.Engine.DataSourceException: Failed to load database information.

Error in File temp_e2ac33fe-6dc0-4fcf-b1f3-997c8509c545 {97C9C8CE-1590-420A-8BF7-8EA56100CEA9}.rpt:

Failed to load database information. ---> System.Runtime.InteropServices.COMException: Failed to load database information.

Error in File temp_e2ac33fe-6dc0-4fcf-b1f3-997c8509c545 {97C9C8CE-1590-420A-8BF7-8EA56100CEA9}.rpt:

Failed to load database information.

   at CrystalDecisions.ReportAppServer.Controllers.DatabaseControllerClass.ReplaceConnection(Object oldConnection, Object newConnection, Object parameterFields, Object crDBOptionUseDefault)

   at CrystalDecisions.CrystalReports.Engine.Table.SetDataSource(Object val, Type type)

   at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type)

   --- End of inner exception stack trace ---

   at CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)

   at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type)

   at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSource(DataSet dataSet)

   at FedexManager.frm_shpDailyManifest.ShowManifest(DateTime FromDate, DateTime ToDate)

   at FedexManager.clsFedexManager.GetDailyManifest(Int32 iManifestId)

 

After adding to app.config file an attribute  useLegacyV2RuntimeActivationPolicy="true" to startup tag this problem was fixed.

 

When I use this Class Library in Access application I have getting a similar error message:

CrystalDecisions.CrystalReports.Engine.DataSourceException: Failed to load database information.

Error in File temp_e0f83f2f-078a-432e-90af-8a6049c259dd {86154599-8E93-4293-BD42-3802A288D9B7}.rpt:

Failed to load database information. ---> System.Runtime.InteropServices.COMException: Failed to load database information.

Error in File temp_e0f83f2f-078a-432e-90af-8a6049c259dd {86154599-8E93-4293-BD42-3802A288D9B7}.rpt:

Failed to load database information.

   at CrystalDecisions.ReportAppServer.Controllers.DatabaseControllerClass.ReplaceConnection(Object oldConnection, Object newConnection, Object parameterFields, Object crDBOptionUseDefault)

   at CrystalDecisions.CrystalReports.Engine.Table.SetDataSource(Object val, Type type)

   at CrystalDecisions.CrystalReports.Engine.ReportDocument.SetDataSourceInternal(Object val, Type type)

   --- End of inner exception stack trace ---

   at Microsoft.VisualBasic.CompilerServices.Symbols.Container.InvokeMethod(Method TargetProcedure, Object[] Arguments, Boolean[] CopyBack, BindingFlags Flags)

   at Microsoft.VisualBasic.CompilerServices.NewLateBinding.CallMethod(Container BaseReference, String MethodName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, BindingFlags InvocationFlags, Boolean ReportErrors, ResolutionFailure& Failure)

   at Microsoft.VisualBasic.CompilerServices.NewLateBinding.ObjectLateCall(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean IgnoreReturn)

   at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateCall(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean IgnoreReturn)

   at Techsign.Invoices.cls_invcShipInvoice.GetShipInvoice(Int32 iInvoiceId, String ConnectionString, Int32 VersionType, enInvoiceType InvoiceType, Int32 LanguagePackId).

 

What I should to do to resolve this problem?


Thanks.


Yakov


Viewing all articles
Browse latest Browse all 4814

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>