Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: CrystalReports
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.
Posted 23-Apr-13 0:48am

1 solution

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

  Print Answers RSS
0 George Jonsson 215
1 Kornfeld Eliyahu Peter 169
2 OriginalGriff 120
3 PIEBALDconsult 110
4 BillWoodruff 85
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 20 Oct 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100