如何使用crystal report发布VB.NET项目 [英] How to publish a VB.NET project with crystal report

查看:59
本文介绍了如何使用crystal report发布VB.NET项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!



希望我没有穿越任何线路或违反任何规则。我需要帮助发布我的项目(vb.net2012与水晶报告)。我需要一步一步的指南。请帮忙,我已经做了我所知道的一切,并进行了深入的搜索,但到目前为止还没有任何效果。



谢谢



编辑:



如Chill所述,以下是他提出的问题的答案:

1)CR版本 - 适用于VB.NET的2012版本

2)是的,这是一个WinForm应用程序。

3)我目前遇到的当前问题涉及加载报告失败



Quote:

有关调用的详细信息,请参阅此消息的结尾

实时(JIT)调试而不是这个对话框。



*********** ***异常文本**************

CrystalDecisions.Shared.CrystalReportsException:加载报告失败。 ---> System.Runtime.InteropServices.COMException:不支持的操作。由JRC引擎处理的文档无法在C ++堆栈中打开。

在CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath,Int32 Options)

at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath,Int32 Options)

at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()

---内部异常堆栈跟踪结束---

在CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()

在CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename,OpenReportMethod openMethod,Int16 parentJob)<在CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)

at WindowsApplication1.crpReport.form2_Load(Object sender,EventArgs e)

System.Wi上的System.Windows.Forms.Form.OnLoad(EventArgs e)

ndows.Forms.Form.OnCreateControl()

在System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)

在System.Windows.Forms.Control.CreateControl( )

在System.Windows.Forms.Control.WmShowWindow(Message& m)

在System.Windows.Forms.Control.WndProc(Message& m)

在System.Windows.Forms.ScrollableControl.WndProc(Message& m)
(消息& m)

在System.Windows.Forms.Form.WndProc(消息& m)
$ b System.Windows.Forms.Control.ControlNativeWindow.OnMessage上的$ b(消息& m)

在System.Windows.Forms.Control.ControlNativeWindow.WndProc(消息& m)

at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd,Int32 msg,IntPtr wparam,IntPtr lparam)





* *************已装载的装配**************

mscorlib

装配版本:4.0 .0.0

Win32版本:4.6.1080.0内建者:NETFXREL3STAGE

CodeBase:file:/// C:/Windows/Microsoft.NET/Framework/v4.0.30319/ mscorlib.dll

--------------------------------------- -

Cares2.50

汇编版本:1.0。 0.0

Win32版本:1.0.0.0

CodeBase:file:/// C:/Users/BPPADMIN/AppData/Local/Apps/2.0/HHE9R5AQ.P6X/01RDTZEW .LBR / care..tion_9ab7722248a0c9aa_0001.0000_581bfd57b8c93ab6 / Cares2.50.exe

--------------------------- -------------

Microsoft.VisualBasic

汇编版本:10.0.0.0

Win32版本:14.6 .1038.0构建者:NETFXREL2

CodeBase:file:/// C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic。 dll

----------------------------------------

系统

汇编版本:4.0.0.0

Win32版本:4.6.1081.0内建者:NETFXREL3STAGE

CodeBase: file:/// C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll

----------- -----------------------------

System.Core

汇编版:4.0.0.0

Win32 Versi on:4.6.1038.0 build by:NETFXREL2

CodeBase:file:/// C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System .Core.dll

-------------------------------------- -

System.Windows.Forms

汇编版本:4.0.0.0

Win32版本:4.6.1038.0内建者:NETFXREL2

CodeBase:file:/// C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

----------------------------------------

System.Drawing

汇编版本:4.0.0.0

Win32版本:4.6.1078.0内建者:NETFXREL3STAGE

CodeBase:file:/ //C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

---------- ------------------------------

System.Configuration

汇编版本:4.0.0.0

Win32版本:4.6.1038.0建立者:NETFXREL2

CodeBase:file:/// C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

----------------------------------------

System.Xml

汇编版本:4.0.0.0

Win32版本:4.6.1064.2内容:NETFXREL3STAGE

CodeBase: file:/// C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll

------- ---------------------------------

System.Runtime.Remoting

汇编版本:4.0.0.0

Win32版本:4.6.1038.0内建者:NETFXREL2

CodeBase:file:/// C:/ WINDOWS / Microsoft。 Net / assembly / GAC_MSIL / System.Runtime.Remoting / v4.0_4.0.0.0__b77a5c561934e089 / System.Runtime.Remoting.dll

--------------- -------------------------

System.Data

汇编版本:4.0.0.0

Win32版本:4.6.1082.0内置b y:NETFXREL3STAGE

CodeBase:file:/// C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll

----------------------------------------

System.Transactions

汇编版本:4.0.0.0

Win32版本:4.6.1080.0内建者:NETFXREL3STAGE

CodeBase:file :/// C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll

-------- --------------------------------

System.EnterpriseServices

汇编版本:4.0.0.0

Win32版本:4.6.1038.0内建者:NETFXREL2

CodeBase:file:/// C:/WINDOWS/Microsoft.Net/assembly /GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll

---------------------- ------------------

CrystalDecisions.ReportSource

汇编版本:13.0.2000.0

Win32版本:13.0.5.891

CodeBase:file:/// C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportSource/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportSource.dll

----------------------------------------

CrystalDecisions .CrystalReports.Engine

汇编版本:13.0.2000.0

Win32版本:13.0.5.891

CodeBase:file:/// C:/ WINDOWS / assembly / GAC_MSIL / CrystalDecisions.CrystalReports.Engine / 13.0.2000.0__692fbea5521e1304 / CrystalDecisions.CrystalReports.Engine.dll

------------------ ----------------------

CrystalDecisions.Shared

汇编版本:13.0.2000.0

Win32版本:13.0.5.891

CodeBase:file:/// C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.Shared/13.0.2000.0__692fbea5521e1304/CrystalDecisions.Shared.dll

----------------------------------------

System.Data.DataSetExtensions

汇编版本:4.0.0.0

Win32版本:4.6.1038.0构建者:NETFXREL2

CodeBase:file:/// C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Data.DataSetExtensions/v4.0_4.0.0。 0__b77a5c561934e089 / System.Data.DataSetExtensions.dll

--------------------------------- -------

System.Numerics

汇编版本:4.0.0.0

Win32版本:4.6.1038.0内建者:NETFXREL2

CodeBase:file:/// C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll

----------------------------------------

CrystalDecisions.ReportAppServer.CommLayer

汇编版本:13.0.2000.0

Win32版本:13.0.5.891

CodeBase:file:/// C :/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CommLayer/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CommLayer.dll

---------------- ------------------------

CrystalDecisions。 ReportAppServer.ClientDoc

汇编版本:13.0.2000.0

Win32版本:13.0.5.891

CodeBase:file:/// C:/ WINDOWS /assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ClientDoc/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ClientDoc.dll

------------------- ---------------------

CrystalDecisions.ReportAppServer.DataDefModel

汇编版本:13.0.2000.0

Win32版本:13.0.5.891

CodeBase:file:/// C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataDefModel/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer .DataDefModel.dll

-------------------------------------- -

CrystalDecisions.ReportAppServer.CubeDefModel

汇编版本:13.0.2000.0

Win32版本:13.0.5.891

CodeBase:file:/// C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CubeDefModel/13.0.2000.0__692fbea 5521e1304 / CrystalDecisions.ReportAppServer.CubeDefModel.dll

--------------------------------- -------

CrystalDecisions.ReportAppServer.ReportDefModel

汇编版本:13.0.2000.0

Win32版本:13.0.5.891

CodeBase:file:/// C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ReportDefModel/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ReportDefModel.dll

- --------------------------------------

CrystalDecisions.ReportAppServer。控制器

汇编版本:13.0.2000.0

Win32版本:13.0.5.891

CodeBase:file:/// C:/ WINDOWS / assembly /GAC_MSIL/CrystalDecisions.ReportAppServer.Controllers/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.Controllers.dll

--------------------- -------------------

CrystalDecisions.ReportAppServer.DataSetConversion

汇编版本:13.0.2000.0

Win32版本:13.0.5.891

CodeBase:file:/// C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataSetConversion/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataSetConversion.dll

----------------------------------------

System.Web

汇编版本:4.0.0.0

Win32版本:4.6.1073.0内建者:NETFXREL3STAGE

CodeBase:file :/// C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll

-------- --------------------------------

log4net

汇编版本:1.2.10.0

Win32版本:1.2.10.0

CodeBase:file:/// C:/WINDOWS/assembly/GAC_32/log4net/1.2.10.0__692fbea5521e1304/ log4net.dll

--------------------------------------- -

CrystalDecisions.Windows.Forms

汇编版本:13.0.2000.0

Win32版本:13.0.5.891

CodeBas e:file:/// C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.Windows.Forms/13.0.2000.0__692fbea5521e1304/CrystalDecisions.Windows.Forms.dll

-------- --------------------------------

System.Web.Services

汇编版本:4.0.0.0

Win32版本:4.6.1038.0内建者:NETFXREL2

CodeBase:file:/// C:/WINDOWS/Microsoft.Net /assembly/GAC_MSIL/System.Web.Services/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll

---------------- ------------------------

CrystalDecisions.Web

汇编版本:13.0.2000.0

Win32版本:13.0.5.891

CodeBase:file:/// C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.Web/13.0.2000.0__692fbea5521e1304/CrystalDecisions.Web。 dll

---------------------------------------- < br $>
CrystalDecisions.ReportAppServer.XmlSerialize

汇编版本:13.0.2000.0

Win32版本:13.0.5.891

CodeBase:file:/// C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.XmlSerialize/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.XmlSerialize.dll

---------- ------------------------------

CustomMarshalers

汇编版本: 4.0.0.0

Win32版本:4.6.1038.0内建者:NETFXREL2

CodeBase:file:/// C:/WINDOWS/Microsoft.Net/assembly/GAC_32/CustomMarshalers /v4.0_4.0.0.0__b03f5f7f11d50a3a/CustomMarshalers.dll

------------------------------ ----------



************** JIT调试******** ******

要启用实时(JIT)调试,此

应用程序或计算机(machine.config)的.config文件必须具有在system.windows.forms部分设置

jitDebugging值。

应用程序也必须使用调试编译

启用。



例如:



< configuration>

< system.windows.forms jitDebugging =true/>





启用JIT调试时,任何未处理的异常

将被发送到计算机上注册的JIT调试器

而不是由此对话框处理。





4)在32位Windows 10上部署



我尝试过:



尝试了一个修复,我已将复制到输出目录选项配置为始终复制,但它不起作用。



以下是我使用的代码:





  Dim  cryRpt  As   ReportDocument 
Dim crConnectionInfo As ConnectionInfo()
Dim 名称作为 字符串
Dim crtableLogoninfos 作为 TableLogOnInfos
Dim crtableLogoninfo < span class =code-keyword> As New TableLogOnInfo

acsconn.ConnectionString = Provider = Microsoft.ACE.OLEDB.12.0; Data
Source = \\Doj2 \ bpp-doj \ dbbppcounter.accdb; Persist Security Info = True; Jet OLEDBatabase Password = *****

acsconn.Open()

strsql = 从RHH_CARES中选择*,其中Last_Name ='& Report.tbText.Text& 'and active ='& 1 & '
acscmd.CommandText = strsql
acscmd.Connection = acsconn
acsda.SelectCommand = acscmd
acsda.Fill(acsds)

cryRpt.Load(Application.StartupPath& \ carpetas.rpt
cryRpt.SetDataSource(acsds.Tables( 0 ))
CrystalReportViewer1.ReportSource = cryRpt

解决方案

AmIWrong [ ^ ]写道:

由JRC引擎处理的文档无法在C ++堆栈中打开。





我建议关注这些步骤:

asp.net - 不支持的操作。由JRC引擎处理的文档无法在C ++堆栈中打开 - Stack Overflow [ ^ ]

c# - 由JRC引擎处理的文档无法打开C ++堆栈 - 堆栈溢出 [ ^ ]



上述错误的最常见原因是程序无法找到报告文件。所以,请检查以下行:

 cryRpt.Load(Application.StartupPath +   \\carpetas.rpt 





注意:

如果你是VB.NET开发人员,你必须知道:

1)要连接2个字符串,你必须使用[& 而不是[ + ]。

MSDN写道:

[& ]运算符建议用于字符串连接,因为它是专门为字符串定义的,可以降低产生意外转换的几率。



source: Visual Basic中的连接操作符 [ ^ ]



2)要将两个或多个字符串组合到路径中,必须使用Path.Combine Method(System.IO) [< a href =https://msdn.microsoft.com/en-us/library/system.io.path.combine(v=vs.110).aspx\"target =_ blanktitle =New Window> ^ ]

在VB.NET中你必须使用[ \ ]双重[ \}的instad \ ]。



如需了解更多详情,请请参阅MSDN文档:

使用Crystal部署Windows应用程序报告 [ ^ ]

部署Crystal Reports在.NET应用程序中 [ ^ ]


Hello everyone!

Hope I'm not crossing any lines or breaking any rules. I need help in publishing my project (vb.net2012 with crystal report). I need A step by step Guide. Please Help, I've done everything I know, and made a deep search but none was effective so far.

Thanks

EDIT:

As asked by Chill, here are the answers to the questions he asked:
1) CR Version - Version 2012 for VB.NET
2) Yes, this is a WinForm application.
3) The current problem I'm having at the moment involves "Load Report Failed"

Quote:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
CrystalDecisions.Shared.CrystalReportsException: Load report failed. ---> System.Runtime.InteropServices.COMException: Unsupported Operation. A document processed by the JRC engine cannot be opened in the C++ stack.
at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
--- End of inner exception stack trace ---
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename, OpenReportMethod openMethod, Int16 parentJob)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String filename)
at WindowsApplication1.crpReport.form2_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1080.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
Cares2.50
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/BPPADMIN/AppData/Local/Apps/2.0/HHE9R5AQ.P6X/01RDTZEW.LBR/care..tion_9ab7722248a0c9aa_0001.0000_581bfd57b8c93ab6/Cares2.50.exe
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 10.0.0.0
Win32 Version: 14.6.1038.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1081.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1078.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1064.2 built by: NETFXREL3STAGE
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1082.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Transactions
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1080.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Transactions/v4.0_4.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.EnterpriseServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
CrystalDecisions.ReportSource
Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportSource/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportSource.dll
----------------------------------------
CrystalDecisions.CrystalReports.Engine
Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.CrystalReports.Engine/13.0.2000.0__692fbea5521e1304/CrystalDecisions.CrystalReports.Engine.dll
----------------------------------------
CrystalDecisions.Shared
Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.Shared/13.0.2000.0__692fbea5521e1304/CrystalDecisions.Shared.dll
----------------------------------------
System.Data.DataSetExtensions
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Data.DataSetExtensions/v4.0_4.0.0.0__b77a5c561934e089/System.Data.DataSetExtensions.dll
----------------------------------------
System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
CrystalDecisions.ReportAppServer.CommLayer
Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CommLayer/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CommLayer.dll
----------------------------------------
CrystalDecisions.ReportAppServer.ClientDoc
Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ClientDoc/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ClientDoc.dll
----------------------------------------
CrystalDecisions.ReportAppServer.DataDefModel
Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataDefModel/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataDefModel.dll
----------------------------------------
CrystalDecisions.ReportAppServer.CubeDefModel
Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.CubeDefModel/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.CubeDefModel.dll
----------------------------------------
CrystalDecisions.ReportAppServer.ReportDefModel
Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.ReportDefModel/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.ReportDefModel.dll
----------------------------------------
CrystalDecisions.ReportAppServer.Controllers
Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.Controllers/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.Controllers.dll
----------------------------------------
CrystalDecisions.ReportAppServer.DataSetConversion
Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.DataSetConversion/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.DataSetConversion.dll
----------------------------------------
System.Web
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1073.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
log4net
Assembly Version: 1.2.10.0
Win32 Version: 1.2.10.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/log4net/1.2.10.0__692fbea5521e1304/log4net.dll
----------------------------------------
CrystalDecisions.Windows.Forms
Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.Windows.Forms/13.0.2000.0__692fbea5521e1304/CrystalDecisions.Windows.Forms.dll
----------------------------------------
System.Web.Services
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Web.Services/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
----------------------------------------
CrystalDecisions.Web
Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.Web/13.0.2000.0__692fbea5521e1304/CrystalDecisions.Web.dll
----------------------------------------
CrystalDecisions.ReportAppServer.XmlSerialize
Assembly Version: 13.0.2000.0
Win32 Version: 13.0.5.891
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/CrystalDecisions.ReportAppServer.XmlSerialize/13.0.2000.0__692fbea5521e1304/CrystalDecisions.ReportAppServer.XmlSerialize.dll
----------------------------------------
CustomMarshalers
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/CustomMarshalers/v4.0_4.0.0.0__b03f5f7f11d50a3a/CustomMarshalers.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />


When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.



4) Deploying on 32-bit Windows 10

What I have tried:

One fix tried was that I've configured the "Copy to Output Directory" option to "Always Copy" but it didn't work.

Here are the codes that I used:


        Dim cryRpt As New ReportDocument
        Dim crConnectionInfo As New ConnectionInfo()
        Dim Name As String
        Dim crtableLogoninfos As New TableLogOnInfos
        Dim crtableLogoninfo As New TableLogOnInfo

        acsconn.ConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data
Source=\\Doj2\bpp-doj\dbbppcounter.accdb;Persist Security Info=True;Jet OLEDBatabase Password=*****"
            acsconn.Open()

            strsql = "select * from RHH_CARES where Last_Name='" & Report.tbText.Text & "' and active = '" & 1 & "'"
            acscmd.CommandText = strsql
            acscmd.Connection = acsconn
            acsda.SelectCommand = acscmd
            acsda.Fill(acsds)

            cryRpt.Load(Application.StartupPath & "\carpetas.rpt"
            cryRpt.SetDataSource(acsds.Tables(0))
            CrystalReportViewer1.ReportSource = cryRpt

解决方案

AmIWrong[^] wrote:

A document processed by the JRC engine cannot be opened in the C++ stack.



I'd suggest to follow these steps:
asp.net - Unsupported Operation. A document processed by the JRC engine cannot be opened in the C++ stack - Stack Overflow[^]
c# - A document processed by the JRC engine cannot be opened in the C++ stack - Stack Overflow[^]

The most common reason of above error is that the programme connot find report file. So, check this line:

cryRpt.Load(Application.StartupPath + "\\carpetas.rpt"



Note:
If you're VB.NET developer, you have to know that:
1) To concatenate 2 strings, you have to use [&] instead of [+].

MSDN wrote:

The [&] operator is recommended for string concatenation because it is defined exclusively for strings and reduces your chances of generating an unintended conversion.


source: Concatenation Operators in Visual Basic[^]

2) To combine two or more strings into path, you have to use Path.Combine Method (System.IO)[^]
In VB.NET you have to use [\] instad of double [\\].

For further details, please see MSDN documentation:
Deploying Windows Applications with Crystal Reports[^]
Deploying Crystal Reports in .NET Applications[^]


这篇关于如何使用crystal report发布VB.NET项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆