如何在不选择打印属性的情况下进行打印 [英] how to print without selecting print properties

查看:122
本文介绍了如何在不选择打印属性的情况下进行打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我在使用Crystal Reports的Visual Studio 2005中的Windows应用程序中遇到问题 btnPRINT_Click

请帮助我,

每当此行出现 crReportDocument.PrintToPrinter(1,true,1,1);

它引发了CATCH异常....

请解决我的问题....

Hi,

I have a problem btnPRINT_Click in windows application in visual studio 2005 using crystal reports

Pls help me,

Whenever its comin this line crReportDocument.PrintToPrinter(1, true, 1, 1);

Its throwing CATCH exception....

Please resolve my issue....

推荐答案

此链接可能对您有帮助
ReportDocument.PrintToPrinter方法 [ http://social.msdn.microsoft.com/论坛/en-US/Vsexpressvcs/thread/7dc0ccd6-1f57-496c-b320-f257bd​​343486 [
this links may help you
ReportDocument.PrintToPrinter Method[^]

http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvcs/thread/7dc0ccd6-1f57-496c-b320-f257bd343486[^]


您需要在运行时在代码中设置登录详细信息-在后面,检查这些

C#Crystal Reports动态登录参数 [了解Crystal Reports中的登录失败错误 [ ^ ]
使用具有.NET的Crystal Reports对数据库登录错误进行故障排除 [ ^ ]

编辑

导致System.Drawing.Printing.PrinterSettings.InstalledPrinters的原因抛出Win32Exception"RPC服务器不可用"? [ [
You need to set logon details at runtime in code-behind, check these

C# Crystal Reports Dynamic Logon parameters[^]

Free attachment
Understanding the Login Failed Error in Crystal Reports[^]
Troubleshooting Database Login Errors using Crystal Reports with .NET[^]

EDIT

What causes System.Drawing.Printing.PrinterSettings.InstalledPrinters to throw Win32Exception "RPC server not available"?[^]
I am getting "The RPC server is unavailable" while trying to print. How to solve?[^]


这篇关于如何在不选择打印属性的情况下进行打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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