Fields cut off printing Crystal Report

I have a C# .net program that contains a Crystal Report.  The program allows the user to print the report from within the program.  I am not using the report viewer control, I am simply telling the report object (quoteReport) to print to the printer after showing a print dialog window (reportPrintDialog).  Here is my code:

// printer settings

quoteReport.PrintOptions.PrinterName = reportPrintDialog.PrinterSettings.PrinterName;

// print all pages

quoteReport.PrintToPrinter(reportPrintDialog.PrinterSettings.Copies, false, 0, 0);

The report prints on the printer, but when I look at the print out, most of the text fields in the report are cut in half.  It is only showing the last half of these text fields and the text that is printed is left aligned.  However, if I export the report first to a PDF file and then print it from there, the printout comes out fine with all the fields displayed correctly. 

I am using Visual Studio 2005 and .NET 2.0.

Does anyone have any ideas what is going wrong here



Answer this question

Fields cut off printing Crystal Report

  • CY19

    Hi,

    reportPrintDialog is object to which class. plz reply mr. Ivandiest.


  • Asaf_K

    reportPrintDialog is a System.Windows.Forms.PrintDialog object.
  • JohnnyOre

    One more thing. I believe the problem is being caused by an image that I am passing into the report at runtime. If I take the image out, the report appears correctly.

    Does anyone know why this could cause this problem and how to fix it so that I can get my image back into the report


  • rwral

    That's the problem, though. I have the image in a page footer section so that it will repeat at the bottom of each printed page, but that is causing the text at the top of the page to be printed incorrectly.
  • Chris Boorman

    I would say the easiest way is to put the image in it's own section, either above or below the section you want it to print in.
  • micd7

    Hi Ivandiest,

    Thank you very much.


  • Cubaconn

    That is really wierd. It sounds like the image is too big or something but if it works when you export it first, then I don't know. Sorry! I hope someone can give you a solution. Good luck!
  • Fields cut off printing Crystal Report