Printing Blank Pages at end of report

Posted on 2009-02-18
Last Modified: 2012-05-06

I have a simple crystal report app that generates a single sheet report, If I print through the Crystal Reports viewer everything works fine but I need to use the PrintToPrinter routine. My original report prints fine then a blank page is issued to the default printer in windows, even if I use PrinterName function to point the output to another printer. ie the report prints to the designated printer but a blank sheet comes out of the default printer. Apologies for my first question being odd, but hey you are the best.
Question by:Ian_Higgs
    LVL 10

    Accepted Solution

    If you have an empty report footer, suppress it.

    Else, check if you've got a "Page break after" ticked for your details section.


    Author Comment


    Hi Spykair,

    Thanks for the response, I am using the embedded crystal reports that came with VS2008, I have tried what you say but with no success, I think my problem is something to do with how Crystal Reports prints out, ie ther must be a difference between the report viewer printing out and the PrintToPrinter method rather than anything in the report body itself. I get no problems when the report viewer prints only whe using the PrintToPrinter method.
    LVL 100

    Assisted Solution

    There are differences beween viewers.

    Are you printing to the same printer the report was built against?
    Crystal uses the printer driver when building the report display.  Changing printers can cause display/printing differences.

    Make sure no fields are at or beyond the right margin of the report.


    Author Comment

    Hi All,

    many thanks for the help today, but I will have to admit that that problem was self inflicted, the code that calls the PrintToPrinter function also uses the Microsoft Reporting tool to produce other reports, a stray  PrintDocument declaration was causing the problem, not the first time I have been caught out by declaring variables inside the code instead of at the start of the function where they can be seen !

    Thanks again for the assistance

    Author Closing Comment

    many thanks

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Suggested Solutions

    Hot fix for .Net Crystal Reports 10.2.3600.0 to fix problems with sub reports running on 64 bit operating systems ISSUE: Reports which contain subreports fail with error "Missing Parameter Value" DEPLOYMENT SERVER OS: Windows 2008 with 64 bi…
    There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
    This video discusses moving either the default database or any database to a new volume.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    8 Experts available now in Live!

    Get 1:1 Help Now