将Crystal报表导出到Pdf中的问题 [英] Problem in Exporting Crystal Report to Pdf

查看:52
本文介绍了将Crystal报表导出到Pdf中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我尝试使用报表查看器将Crystal报表导出为pdf,但显示为
错误 登录失败.详细信息:ADO错误代码:0x源:SQL Server的Microsoft OLE DB提供程序说明:用户"sa"的登录失败.SQL状态:42000本机错误:文件C:\ Users \ baski \ AppData中的错误\ Local \ Temp \ yearreport {E8C2C7BB-A807-42A5-902B-981C41467C4B} .rpt:无法连接:登录参数不正确."

我也尝试使用代码.但是它显示了相同的错误..

任何人都可以解决这个问题吗?.

Hi,
I tried to export crystal report to pdf using report viewer but it displayed error as
"Logon failed. Details: ADO Error Code: 0x Source: Microsoft OLE DB Provider for SQL Server Description: Login failed for user ''sa''. SQL State: 42000 Native Error: Error in File C:\Users\baski\AppData\Local\Temp\yearreport {E8C2C7BB-A807-42A5-902B-981C41467C4B}.rpt: Unable to connect: incorrect log on parameters."

I tried by using code also.But it displays the same error..

can anyone solve this problem pls..

推荐答案

在这里你去

了解Crystal Reports中的登录失败错误 [ ^ ]

使用具有.NET的Crystal Reports对数据库登录错误进行故障排除 [ ^ ]
Here you go

Understanding the Login Failed Error in Crystal Reports[^]

Troubleshooting Database Login Errors using Crystal Reports with .NET[^]


从外观上看,正确的参数并未作为与无法建立数据库.确保连接字符串参数全部正确.
From the looks of it, the right parameters are not being passed into the report as a connection to the database could not be establised. Make sure the connection string parameters are all correct.


在运行时提供数据的路径(连接字符串).
At run time give the path (Connection string) to your data.


这篇关于将Crystal报表导出到Pdf中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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