Crystal报表:无法连接不正确的登录参数 [英] Crystal Report: Unable to connect incorrect log on parameters

查看:1010
本文介绍了Crystal报表:无法连接不正确的登录参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当打印报告时,用户有时会出现以下错误:

 CrystalDecisions.CrystalReports.Engine.LogOnException:
文件C中的错误:\DOCUME〜1 \carolec\LOCALS〜1 \Temp\temp_b117cc2e-c184-4556-a493-e04e6d4126fb {388C2B55-114E-4087-A22D-9289902AFDEB} .rpt:
无法连接:登录参数不正确。 ---> System.Runtime.InteropServices.COMException(0x8004100F):
文件C中的错误:\DOCUME〜1 \carolec\LOCALS〜1 \Temp\temp_b117cc2e-c184-4556-a493- e04e6d4126fb {388C2B55-114E-4087-A22D-9289902AFDEB} .rpt:
无法连接:登录参数不正确。
àCrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.GetLastPageNumber(RequestContext pRequestContext)
àCrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)
--- Fin de la trace de la pile d'异常interne ---
àCrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
àCrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)
àCrystalDecisions.CrystalReports.Engine.FormatEngine。 PrinttoPrinter(Int32 nCopies,Boolean collat​​ed,Int32 startPageN,Int32 endPageN)
àCrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 nCopies,Boolean collat​​ed,Int32 startPageN,Int32 endPageN)

$ b



配置:C#(2008),WinForm,Crystal Report 10,SQL Server 2008 Express(local)

解决方案

没有使用水晶报表一点,但通常一个错误沿着LogOn异常与安全无关,Crystal Report的错误可能有点随意。



它可能是与内存问题相关的错误。



这可能是特定报表,子报表可能尝试使用存储在报表中的凭据登录,而不是通过代码传递到凭据;您需要循环浏览所有子报表,而不只是设置登录信息的主报表。



我记得在使用解决方法安装动态标志(从另一个数据库表中的二进制字段中提取的报告),除了有一个轻微的错误,它拉出每行数据的标志数据;在返回一定数量的行后,它会导致类似的错误。


When printing a report, the user sometime have the following error:

CrystalDecisions.CrystalReports.Engine.LogOnException:  
Error in File C:\DOCUME~1\carolec\LOCALS~1\Temp\temp_b117cc2e-c184-4556-a493-e04e6d4126fb {388C2B55-114E-4087-A22D-9289902AFDEB}.rpt:  
Unable to connect: incorrect log on parameters. ---> System.Runtime.InteropServices.COMException (0x8004100F): 
Error in File C:\DOCUME~1\carolec\LOCALS~1\Temp\temp_b117cc2e-c184-4556-a493-e04e6d4126fb {388C2B55-114E-4087-A22D-9289902AFDEB}.rpt:
Unable to connect: incorrect log on parameters.
   à CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.GetLastPageNumber(RequestContext pRequestContext)
   à CrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)
   --- Fin de la trace de la pile d'exception interne ---
   à CrystalDecisions.ReportAppServer.ConvertDotNetToErom.ThrowDotNetException(Exception e)
   à CrystalDecisions.ReportSource.EromReportSourceBase.GetLastPageNumber(ReportPageRequestContext reqContext)
   à CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)
   à CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(Int32 nCopies, Boolean collated, Int32 startPageN, Int32 endPageN)

Any ideas on a solution?

Configuration: C# (2008), WinForm, Crystal Report 10, SQL Server 2008 Express (local)

解决方案

Haven't used Crystal Reports for a bit, but generally an error along the lines of "LogOn Exception" may actually have nothing to do with security at all, Crystal Report errors can be a bit random.

Its possible it may be an error related to memory issues.

Or...

It might be report specific, a sub-report maybe trying to logon using credentials stored within the report, rather than the credentials you've passed into it via the code; You need to loop through all sub-reports rather than just the main report setting the login information.

I remember having this particular error when I used a workaround to install a dynamic logo for a report (that got pulled from a binary field within another database table) except there was a slight error in which it pulled the logo data for each row of data; After a certain amounts of rows returned it died resulting in a similar error.

这篇关于Crystal报表:无法连接不正确的登录参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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