Skip to Content
author's profile photo Former Member
Former Member

Report does not print exactly same as it appears at design time


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;



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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Jan 16, 2012 at 02:47 PM


    Moved your post to .NET SDK forum.

    Search here on PrintOutputController and use it to print your report. Requires RAS which you have available. P2P is limited in it's abilities.

    Also, If the printer you designed the report originally from is not available CR uses the margins of the default printer, which is why the margins changed.

    Other options, check on the No Default Printer, may work for you but be careful with this function. Also check on the Dissociate.. option and save your report. Or you can do it in code also.

    One last issue, Microsoft's scales the print out by something like 1.5 %, it's a limitation in the Framework and nothing CR can do about it...

    Try searching, lots of info on this subject in this forum.


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Bhushan Hyalij

      Hi Bhushan, Although Your post did not help me in solving my problem, It will help many others to get direct link to download PROPER version of Crystal reports and the reference Guide for which I spent long time even to search proper one.

      Hence rewarding you few points.

      Thanks a lot.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.