The PrintToPrinter() method needs to be explained in more detail because the The first parameter, nCopies, sets how many copies of the report to print. If more. hi i need to print crystalreport directly without showing anything to user is it possible i try this but i got error (h(cryRpt. O.k., got an issue with my Crystal report and need MAJOR help! It involves the oPrinter function of the Crystal Reports.
|Published (Last):||28 April 2010|
|PDF File Size:||1.47 Mb|
|ePub File Size:||14.24 Mb|
|Price:||Free* [*Free Regsitration Required]|
Articles Quick Answers Messages Use my saved content filters. Print all pages using crystal report. Please Sign up or sign repoort to vote. I am doing a C win app. I am not using the print button on the crystal report.
Automatically Printing Crystal Reports in : ASP Alliance
I want to print all pages from crystal report. My problem is that, only the first page is printing. PrintToPrinter 1false00 ; ReportDocument. Fix for “Load report failed” error. I am using the same code. But still its not printing Check your printer settings. Its perfect code by MSDN.
I tried that s of times. I have 2 buttons. One button printing daily report teport another monthly. One report is working fine. I used the code u said. Problem with another crystal report.
In that ,Only the first page is printing. Add parameterdiscvalue1 ; paramfields. Add paramField ; crystalReportViewer1. ApplyPageMargins margins ; cryrpt. PrintToPrinter 1, false, 0, priinttoprinter. Why the below line twice in your code? And can you able printtopritner see all pages in print preview? Ya, I can see all pages before printing. This is the code i wrote on print button click. Ive not disposed the report objects. Can you pls help me?
Check my updated answer. The report is loading.
I cant understand what the problem is. Anyways Thanks for the reply!!
Crystal Reports Online Training
Any problem with the code?? Member 2-May 4: I’m not sure, try this https: Member 2-May 5: Hi thanks for the reply, but in that link, its all about loading the report into the crystal report viewer, not printing.
For printing, use prnttoprinter code from answer. Yes i agree thanks sir, reprot i need a print preview first before user deciding to print. Actually for preview, you have to use Crystal report viewer. You could give two options in your page. Let user decide which they want. BTW I’m not working on crystal reports anymore man. This answer is 8 year old.
Member 2-May Alright thanks a lot for the reply: Btw not all programmers are men: Hope you’re not sarcastic: Add your solution here. Treat my content as plain text, not as HTML. Existing Printtoprintrr Sign in to your account. This email is in use. Do you need your password? When answering a question please: Read the question carefully.
Understand that English isn’t everyone’s first language so be lenient of bad spelling and grammar.
If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome. Don’t tell someone to read the manual. Chances are they have and don’t get it.
Crystal Reports printing Problem. Print Crystal report Without view report.