.net - Crystal Reports - objRpt.SetDataSource() -


I have created a new crystal report that is called the IW1 and CrystalReportViewer1 object on my form, and to show it to everyone A highly defined dataset uses a record in the table which is working fully though I am now trying to limit the results to show the records based on only 1 SQL selection statement. But I am getting an error on the runtime below Crystal Reports.

Error received ...


System. Io Filnotfesakseshn was unmanaged HResult = -2147024894 message could not be = load file or assembly 'file: /// C: \ Program Files (x86) SAP BusinessObjects \ to \ .NET Framework Crystal Reports 4.0 \ Common \ SAP BusinessObjects Enterprise XI 4.0 \ win32_x86 \ dotnet1 \ crdb_adoplus.dll 'or one of your dependencies The system can not find the file specified. Source = name mscorlib file = file: /// C: \ Program Files (x86) \ SAP BusinessObjects \ Crystal Reports for .NET Framework 4.0 \ Common \ SAP BusinessObjects Enterprise XI 4.0 \ win32_x86 \ dotnet1 \ crdb_adoplus.dll FusionLog to = information === pre-bind situation === LOG: where-ref bind location = C: \ program files (x86) \ SAP .NET Framework BusinessObjects \ crystal reports 4.0 \ Common \ SAP BusinessObjects enterprise XI 4.0 \ win32_x86 \ dotnet1 \ crdb_adoplus.dll log in: Appbase = file: /// C: / user / rob / document / development / Pmslinks / pmslinks / bin / debug / logs: initial privatepath = null

calling assembly: (unknown).

LOG: It starts with load load loads. WRN: The original image will not be tested in the loadframe context. The original image will be checked only in the default load context, such as with assembly.Load (). LOG: Using application configuration file: C: Using \ Users \ Rob \ Documents \ D \ PMSLinx \ PMSLinx \ bin \ Debug \ PMSLinx.vshost.exe.config log: Host Configuration File: Login: Machine Configuration C Using the file: \ Windows \ Microsoft.NET \ Framework \ v4.0.30319 \ config \ machine.config Log in: /// C: Trying to download a new URL file. / Program Files (x86) / SAP BusinessObjects / .NET Framework 4.0 / common / SAP BusinessObjects Enterprise XI 4.0 / win32_x86 / dotnet1 / crdb_adoplus.dll Crystal Reports

Stektres: System. Reflection. Runtime. Aspenment _ Anlod (assembly name filename, String codebase, evidence assembly security, runtime assembly space, stack crawl mark and stack marker, Intpit Peepirwhostbinkr on Boolean Fenkonfail Notfand, Boolean For Introspekshn, Boolean Spressakwayri checks) system. reflection. .nLoad (AssemblyName file name, string codebase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark & ​​StackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks) System.Reflection.RuntimeAssembly.InternalLoadAssemblyName (assemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, on StackCrawlMark & ​​amp; stack mark, Intpit Peeprhostbinkr, Aroonfail Notfond, Boolean for Intrspekshn, Boolean après security checks) to the system Boolean th system. Reflections: RantimaAdsDaxide Inrniallodfrm (string Asenblifail, private security Evidence, byte [] hash value, assembly Acs algorithm hash algorithms for Boolean Introspikshns, Boolean Spressakwayri checks, stack crawl mark & ​​amp; Stack mark) on the system. Reflection.Assembly.LoadFrom load CrystalDecisions.ReportAppServer.DataSetConversion.DataSetConverter.DataSetProcessingDelegate (IntPtr ARG) (string Asenblifail) InnerException:


code I am currently using in any other form.

Modify the objRpt New Inv1 dim invoiceDS new dataset as the

  as the dim Q string = Select 'from * join the inv_data interiors on res_data inv_data.inv_res_id = res_data.res_id Where inv_res_id = "& amp; EditResID GetFromDB (invoiceDS, Q) objRpt.SetDataSource (invoiceDS.Tables ( "table")) ViewReport.CrystalReportViewer1.ReportSource = objRpt ViewReport.CrystalReportViewer1.Refresh () ViewReport.Show ()    

Try adding it to your .config file (usually app.config)

  lt; startup useLegacyV2RuntimeActivationPolicy = "true" & gt; & Lt; Supported serial version = "v4.0" sku = ".NETFramework, version = v4.0" /> & Lt; / Startup & gt;    

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -