Crystal Report打印无需打开打印对话框 [英] Crystal Report Printing Without opening Print Dialogue box

查看:100
本文介绍了Crystal Report打印无需打开打印对话框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有ASP.NET的 rystal报告。我的问题是:

当Crystal Report View中的Print按钮时单击它会弹出一个打印对话框窗口。我需要绕过这个窗口(即该打印对话框窗口不应出现给用户。点击打印按钮后,必须立即打印报告。) 。我用谷歌搜索了很多次。我找不到相关的答案。谷歌搜索时我找不到答案。

它们是:

(1) PrintToPrinter(1,False,0,0) - >这个不适合我的需要。我的报告必须从客户端打印



(2) window.print() - >此方法仅打印报告的第一页。我的报告包含3到5页。



(3) http://aspalliance.com/509_Automatically_Printing_Crystal_Reports_in_ASPNET.all - >我也提到了这个链接。我无法按照那里的指示操作HTML。 因为我的报告包含奇怪页面甚至页面的不同页眉和页脚,并且渲染期间的HTML操作极大地改变了我的报告'allignment (我有大约50个报告更改了所有报告的对齐是麻烦和耗时的) 。



请帮助我。我对此问题感到震惊。



我有使用 发送密钥{Enter} 的想法尽快关闭打印对话它弹出来了。但是我不知道放在哪里,因为Crystal Report的PrintButton没有事件。

解决方案

如何直接将Crystal Reports打印到默认客户端没有预览或打印机对话框的ASP.NET打印机 [ ^ ]

在ASP.NET C#中的客户端打印Crystal报表 [ ^ ]

Hi, I have a crystal Report with ASP.NET. My problem is:
"When Print button in the Crystal Report Viewver is clicked it pops up a print dialog window.I need to bypass this window (i.e. This print dialog window should not appear to user. Once print button clicked,Report has to be printed straight away. )". I have googled many times. I couldnt find relevant answer. While Googling I found few answers.
They are:
(1) PrintToPrinter(1,False,0,0)->This is not suitable for my need. My Report has to be printed from client side

(2) window.print()-> This method prints only the first page of the Report. My Report contains 3 to 5 pages.

(3)http://aspalliance.com/509_Automatically_Printing_Crystal_Reports_in_ASPNET.all -> I refered this link also. I could not follow the instructions given there for manipulating HTML. Because My Report contains diffrent header and footer for odd page and even page and HTML Manipulation during rendering greatly changes my reports' allignment (I have some 50 reports changing allignment for all the reports is troublesome and time consuming).

Please Help Me Out.I am struck with this problem.

I have Idea of Using "Send Keys {Enter}" to close the Print Dialogue as soon as it pops up. But I dont know where to put it, since PrintButton of Crystal Report has no event.

解决方案

How to Directly Print a Crystal Reports to Default Client Printer from ASP.NET without Preview or Printer Dialog[^]
Printing Crystal Report on Client Side in ASP.NET C#[^]


这篇关于Crystal Report打印无需打开打印对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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