PrintToPrinter导致“缺失参数值”错误 [英] PrintToPrinter causing a "Missing parameter values" error

查看:85
本文介绍了PrintToPrinter导致“缺失参数值”错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用C#代码行在ASP.NET页面上打印crystalreport,没什么特别的,但是上面的错误,打破了代码行下面。

I am using a C# line of code to print a crystalreport on an ASP.NET page, nothing special , but the above error, breaks on the line of code below.

Report.PrintToPrinter(1,false,0,0)

Report.PrintToPrinter(1, false, 0, 0)

我已将Report声明为ReportDocument并已对其进行配置,并且它在ReportViewer控件中显示正常。这可能有什么问题?

推荐答案

使用查看器时,它是否提示输入参数?如果是,则需要在打印前在代码中提供参数。
When using the viewer, is it prompting for parameters?  If it is, you need to provide the parameters in code before you print.


这篇关于PrintToPrinter导致“缺失参数值”错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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