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

Telerik.ReportProcessor label printing: ReportProcessor prints two labels instead of one

3 Answers 116 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Roman
Top achievements
Rank 1
Roman asked on 03 Sep 2014, 09:15 AM
Hello everybody

I'm trying to print labels using Telerik.ReportProcessor class and PrintReport() method. It's working almost perfect. But I got one problem: Everytime I try to print a label (only one), it prints two labels. If I try to print 3 labels, it prints 6. It prints always the double of the number of labels I'm trying to print. I tried to resize it to 10px height and 10px width because I thought it's too big. But that didn't help. Doesn't matter how big the label is, it always prints the double.
You can see my C# code here:

PrinterSettings printerSettings = new PrinterSettings();
printerSettings.PrinterName = @"\\bbfs\LA42";

PrintController standardPrintController = new StandardPrintController();

ReportProcessor reportProcessor = new ReportProcessor();
reportProcessor.PrintController = standardPrintController;
InstanceReportSource instanceReportSource = new InstanceReportSource();
instanceReportSource.ReportDocument = myReport;
reportProcessor.PrintReport(instanceReportSource, printerSettings);

Did anyone ever had that problem before or does anyone know the solution? I'm getting stuck on this, it's really annoying and a waste of labels :)

Hope someone can help me.

Regards,
Roman

3 Answers, 1 is accepted

Sort by
0
Hinata
Top achievements
Rank 1
answered on 05 Sep 2014, 02:47 PM
Hi Roman,

Your code seems to be correct.
Does this also happen when you print the report or export to PDF from a Report Viewer?
0
Roman
Top achievements
Rank 1
answered on 18 Sep 2014, 09:31 AM
Hi Hardik

Sorry, I didn't see your reply :/

Yes, this does also happen when I print the report using a PDF printer. Then it prints 1 paper with the printing on it and 1 paper which is empty, and the empty one should not be printed.

Regards,
Roman
0
Accepted
KS
Top achievements
Rank 1
answered on 22 Sep 2014, 02:03 PM
Hi,

Blank pages I assume - Problem: Telerik Reporting renders blank pages.

-KS
Tags
General Discussions
Asked by
Roman
Top achievements
Rank 1
Answers by
Hinata
Top achievements
Rank 1
Roman
Top achievements
Rank 1
KS
Top achievements
Rank 1
Share this question
or