Hello,
I am using SAP Crystal report with VS 2010.
I designed a report. At design time every thing appears fine. Margins are set to 0, printer is selected and page size is custom.(right click on report, design>pagesetup)
When I use <reportname>.printtoprinter(), it dramatically changes the text size and margins of the report in hard copy. I tried literally everything for this. Especially It adds nearly 2 inches extra margin at top.Also , at run time it changes the font size to 8 or 9 points if i have set it to 12 at design time.
I get the same problem if I do following:
crystalReportViewer1.ReportSource = rptRcAbh;
crystalReportViewer1.PrintReport();
HOWEVER!!
When I do this:
crystalReportViewer1.ReportSource = rptRcAbh;
AND when I manually click the print button of crystal report viewer, i get EXACTLY SAME result as design time. This is what I am expecting from printoprinter() method. But Its changing result dramatically.
Why is this happening? Am I forgetting any setting?
I must use reprot.printtoprinter() method here. Because I am printing the bill receipt. I dont want the user to go to printpreview then click print. AND I must get same result as design on printed page.
Please help me. I am in urgent need.