我的水晶报表无法在线使用 [英] My crystal report is not working in online

查看:106
本文介绍了我的水晶报表无法在线使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的项目中,我正在使用Crystal报表.我为负载报告提供了以下编码

In my project I am using Crystal report. I give the following coding for load report

rptdoc = new ReportDocument();    rptdoc.Load(Server.MapPath("LedgerReport.rpt"));    rptdoc.SetDataSource(ds.Tables[0])   rptdoc.ExportToHttpResponse(ExportFormatType.PortableDocFormat, this.Response, false, "LedgerReport.pdf");
CrTables = rptdoc.Database.Tables
connectdatabase1();
CrystalReportViewer1.ReportSource = rptdoc;



它在本地计算机上正常工作.但是在网上错误显示是这样的



It is working correctly on local machine. But in the online the error display''s like that

Error in File c:\temp\LedgerReport {345EA6B4-A400-4A75-A28B-9CBC0715C631}.rpt:
Operation not yet implemented.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Runtime.InteropServices.COMException: Error in File c:\temp\LedgerReport {345EA6B4-A400-4A75-A28B-9CBC0715C631}.rpt:
Operation not yet implemented.

Line 141:        rptdoc.ExportToHttpResponse(ExportFormatType.PortableDocFormat, this.Response, false, "LedgerReport.pdf");



我也上传了aspnet_client文件夹.但是没用就行不通
请帮助任何人解决此问题.



I had upload aspnet_client folder also. But no use it is not working
Please help anyone for solve this problem.

推荐答案

根据google,这意味着未注册COM dll"Exportmodeller.dll"和"Tslv.dll",或者您的服务器上可能不存在.
According to google, this means the COM dlls "Exportmodeller.dll" and "Tslv.dll" are not registered, or perhaps not present, on your server.


我认为由于server.mappath函数会导致错误,它将返回物理路径.
只需更改虚拟路径,例如http:\\ domain \\ foldertree \\ report.rpt
i think you will get error due to server.mappath function .it will return physical path.
just change with virtual path like http:\\domainname\\foldertree\\report.rpt


这篇关于我的水晶报表无法在线使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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