This is a migrated thread and some comments may be shown as answers.

Printing from Web App or Console is scaled incorrectly

2 Answers 101 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bryan Dougherty
Top achievements
Rank 1
Bryan Dougherty asked on 24 Jan 2014, 06:44 PM
I'm using the following code to try to render a Telerik sample report from an ASP MVC Web app and a Console app directly to a printer with no UI.  The report prints, but it is scaled about 50% and I don't know why.  Running from a WPF app or Windows Service it prints nicely.  Why might this be?

Telerik.Reporting.IReportDocument report = new ListBoundReport();
 
// The standard print controller comes with no UI
System.Drawing.Printing.PrintController standardPrintController =
    new System.Drawing.Printing.StandardPrintController();
 
var processor = new ReportProcessor();
processor.PrintController = standardPrintController;
 
Telerik.Reporting.InstanceReportSource instanceReportSource =
    new Telerik.Reporting.InstanceReportSource();
 
instanceReportSource.ReportDocument = report;
 
var settings = new PrinterSettings();
processor.PrintReport(instanceReportSource, settings);

2 Answers, 1 is accepted

Sort by
0
Bryan Dougherty
Top achievements
Rank 1
answered on 24 Jan 2014, 08:37 PM
I confirmed this issue is consistent with the sample Barcodes report, too.  So I don't think it is unique to a report.  It really just looks like it is scaling to 50% of the full paper size.
0
Stef
Telerik team
answered on 28 Jan 2014, 04:01 PM
Hello Bryan,

Using the specified by you method to print, you are using the default printer settings for the machine. Please check Devices and Printers - the selected default printer - Printing Preferences - Zoom and set it to 100%. Test also printing from other machine.

If you need any further help, let us know the above mentioned settings and the result from printing on ther machine or to other printer.

Regards,
Stef
Telerik

New HTML5/JS REPORT VIEWER with MOBILE AND TOUCH SUPPORT available in Telerik Reporting Q3 2013! Get the new Reporting version from your account or download a trial.

Tags
General Discussions
Asked by
Bryan Dougherty
Top achievements
Rank 1
Answers by
Bryan Dougherty
Top achievements
Rank 1
Stef
Telerik team
Share this question
or