I'm developing a c# program to print Crystal Reports document. The program takes rpt raw file and send it to printer.
ReportDocument crrpt = new ReportDocument();
crrpt.Load(pathtorptfile);
crrpt.PrintOptions.PrinterName = settings.Print_printer;
crrpt.PrintToPrinter(1, false, 0, 0);
The above code can print. The problem is the page size does not seem correct. It is different from the page size in the rpt file (when opened in Crystal Reports).
When opened in Crystal Reports, the size is half A4 (which is what I need). And printing it within Crystal, also gives the half the page. However, when I print with above code, it prints in top half page and leave the bottom half page empty. (Sample http://imgur.com/rPX9bep).
Printing within Crystal Reports (on the left - one I need) vs Printing with above code (on the right).
Appreciate any helps. Thanks in advance.