嗨,我已经粘贴了一段代码,我正在显示一份报告.我正在使用Visual Studio 2008 Crystal Report引擎.它对这段代码很有用
问题:每次运行报告时,它都会生成一个('.*tmp','.*rpt')文件,通常位于临时文件夹c:\ windows\temp中但是我们可以通过设置一个来删除*.tmp文件在应用程序池上回收,但需要一种方法来摆脱.rpt文件.
找到解决方案:在报表对象上调用Close()和Dispose().我正在做的方式是crReportDoc.Close()然后crReportDoc.Dispose()
实际问题:如果调用Dispose(),报告会出现以下错误'对象引用未设置为对象的实例'
如果其中一位同伴可以帮我解决问题,我将非常感激,因为我对编程很陌生.
谢谢
Dim crReportDoc = New CrystalDecisions.CrystalReports.Engine.ReportDocument
crReportDoc = Session("ReportDocument")
ReportViewer.DisplayToolbar = True
ReportViewer.EnableDrillDown = True
ReportViewer.DisplayGroupTree = False
ReportViewer.Visible = True
ReportViewer.DisplayToolbar = True
ReportViewer.ReportSource = crReportDoc
Run Code Online (Sandbox Code Playgroud) c# vb.net crystal-reports visual-studio-2008 crystal-reports-2008
我正在 VS 2010 中做一个 Web 项目,我对编程还很陌生。我只是想知道一旦 Button_click 事件被触发/单击,如何显示网页中数据表或数据集的数据?
请帮忙!