Hi Todor,
thanks for your response. That pointed me into the right direction.
The issue why it is cutting after a DINA4 page is related to the paper size settings of the printer.
Unfortunately, there seems to be another issue with the Telerik reporting. The default paper size of the printer is correctly set in the Windows settings. When trying to print from the Telerik Report Designer the Windows settings seems to be ignored or at least modified for some reason. Attached you can find some screenshots from the settings dialog, hope they explain our problem well.
We could live with the issue in the designer as we intend to print directly from our software but when we print directly from the code it is always using the wrong paper size. Is there a way to specify the correct paper size from the source code?
This is our current printing routine:
01.
IReportDocument repDocList =
new
Report1(model);
02.
03.
// set printer settings
04.
PrinterSettings printSet =
new
PrinterSettings();
05.
printSet.PrinterName = @
"EPSON TM-T88VI Receipt"
;
06.
07.
// create print controller
08.
PrintController printCtrl =
new
StandardPrintController();
09.
10.
// create report processor
11.
ReportProcessor repProc =
new
ReportProcessor();
12.
repProc.PrintController = printCtrl;
13.
14.
InstanceReportSource repSrc =
new
InstanceReportSource();
15.
repSrc.ReportDocument = repDocList;
16.
17.
repProc.PrintReport(repSrc, printSet);
When I check the PrinterSettings in the debugger they look totally fine and the correct paper size is set.
We tried to modify the page settings of the report as well but it doesn't seems to have any effect at all.
Any thoughts what might be the problem?
Thanks in advance,
Tobias