Click here to Skip to main content
15,922,155 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
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) -> 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.

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900