Continuous Paper not working

16 posts, 0 answers
  1. Tobias
    Tobias avatar
    5 posts
    Member since:
    Jun 2015

    Posted 24 Sep Link to this post

    Hi guys,

     

    at the moment we are trying to figure out if we can use the Telerik Reporting to generate receipts on a thermo printer with endless paper.
    We found the ContinuousPaper setting within the PageSettings but it doesn't seems to be working as expected. We are using the latest Version of Reporting (2018 R3)

    When using the ContinuousPaper everything looks fine in the preview but after printing the paper gets cut after one DINA4 page. This happens when printing on the printer and when printing to a PDF file.

    The only settings we have made is setting the ContinuousPaper property and adding a lot of textboxes to the report designer.

    Any idea what we are doing wrong?

  2. Todor
    Admin
    Todor avatar
    160 posts

    Posted 27 Sep Link to this post

    Hello Tobias,

    I tested the described scenario. I have attached the sample report and the results of the tested Print/Export. Here are my findings :

    - When Printing to PDF with 'Microsoft Print to PDF' virtual printer the issue is indeed reproduced - see 'MicrosoftPrintToPDF.pdf';
    - When Printing to PDF with 'Foxit Print to PDF' (can be downloaded form Foxit) the output file is correct - 'FoxitPrintToPDF.pdf';
    - When Exporting to PDF the generated file is as expected - 'ExportToPDF.pdf'.

    The issue is probably related to the (virtual) printer not supporting 'Continuous Paper' option.

    Regards,
    Todor
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Tobias
    Tobias avatar
    5 posts
    Member since:
    Jun 2015

    Posted 27 Sep in reply to Todor Link to this post

    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

  4. Silviya
    Admin
    Silviya avatar
    161 posts

    Posted 02 Oct Link to this post

    Hi Tobias,

    From the provided screen shots and information, I understand that your default paper size of the printer is set in the Windows settings and it is correct. However, when you are trying to print from the Designer these settings are ignored and printed in A4 format.

    My suggestion is to set the same PageSettings of the report as the default ones, i.e. please test setting the following properties (screen shot)
    - Paper Size to Custom
    - Paper Width to 80mm
    - Paper Height to 3276mm
    - uncheck the Print on continuous (roll) paper option

    Regards,
    Silviya
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  5. Tobias
    Tobias avatar
    5 posts
    Member since:
    Jun 2015

    Posted 02 Oct in reply to Silviya Link to this post

    Hi Silviya,

    thanks for your resposne. I've tried that before and unfortunately it is not working.

    Attached you can see a Screenshot with the correct printout (green) and the printout with your requested settings (red).

    To get the green printout we have to edit the windows printer settings manually within the print dialog of the designer. As I said, this would work for the designer but we have to print automatically without any user interaction and haven't found a workaround yet.

    Do you know any way how we can achieve this with some code?

     

  6. Silviya
    Admin
    Silviya avatar
    161 posts

    Posted 05 Oct Link to this post

    Hi Tobias,

    We tested further, and indeed using Custom Paper Size the height is not respected. We consider this as bug and it is is logged in our system for improvement.
    As a token of gratitude for directing us to the problem we have updated your Telerik points.

    As a workaround, you'll need to edit the printer settings manually within the print dialog of the designer and then print in order to be respected.
    I'm sorry for the caused inconvenience.

    Regards,
    Silviya
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  7. Tobias
    Tobias avatar
    5 posts
    Member since:
    Jun 2015

    Posted 05 Oct in reply to Silviya Link to this post

    Hi Silviya,

    what’s about programmatically printing? Is there any workaround for this?

    Kind Regards
    Tobias

  8. Silviya
    Admin
    Silviya avatar
    161 posts

    Posted 09 Oct Link to this post

    Hello Tobias,

    I created a sample project which prints either report with continuous paper setting enabled or with custom paper size settings. Both reports are printed as expected with set as default Foxit PDF Printer (I've included the output files too).

    So, my assumption is that there is something about the default printer settings which prevents printing in the required size. You can also test to set explicitly a custom paper size of the default printer as:
    printerSettings.DefaultPageSettings.PaperSize = new System.Drawing.Printing.PaperSize(string name, int width, int height).

    I hope this would help.

    Regards,
    Silviya
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  9. Pete
    Pete avatar
    2 posts
    Member since:
    Apr 2014

    Posted 11 Oct Link to this post

    We have come up against the same issue.

    Could you please confirm that it will addressed in in the next release.

  10. Yves
    Yves avatar
    7 posts
    Member since:
    Apr 2015

    Posted 11 Oct Link to this post

    Currently we are thinking about renewing our Telerik license, but this is a critical issue for us. So could you please confirm that it is on the roadmap for the next release? 

    If we can figure out a working workaround for printing programmatically this would be a possible solution for us too. But we are not able to get it working. 

     

    Even setting printerSettings.DefaultPageSettings.PaperSize = new System.Drawing.Printing.PaperSize(string name, int width, int height) doesn't work.

     

    Maybe you have a clue how we can set the same settings via code that we change in the designer. This does not seem to be working as expected.

     

    Many thanks in advance, 

    Yves

     

  11. Tobias
    Tobias avatar
    5 posts
    Member since:
    Jun 2015

    Posted 11 Oct in reply to Silviya Link to this post

    Silviya said:Hello Tobias,

    I created a sample project which prints either report with continuous paper setting enabled or with custom paper size settings. Both reports are printed as expected with set as default Foxit PDF Printer (I've included the output files too).

    So, my assumption is that there is something about the default printer settings which prevents printing in the required size. You can also test to set explicitly a custom paper size of the default printer as:
    printerSettings.DefaultPageSettings.PaperSize = new System.Drawing.Printing.PaperSize(string name, int width, int height).

    I have tried your example but the printout gets still cut.

    When checking the printerSettings.DefaultPageSettings.PaperSize I can see the correct paper size specified in the windows printer settings. Changing them doesn't seem to have any effect at all. It doesn't matter if I try a smaller or a larger paper size, the printout is always cut after one A4 page.

  12. Silviya
    Admin
    Silviya avatar
    161 posts

    Posted 5 days and 18 hours ago Link to this post

    Hello all,

    I'm sorry for the delayed response.

    Honestly, I do understand that this is a serious issue and we have been investigating it on our side. Our development team investigated and tried to reproduce the strange behavior with the provided project from my previous answer, however, I'm afraid without much success. Either printing from the designer, or code-behind through Telerik Report Processor. Unfortunately, we do not currently have such physical printer in our disposition to test print the report and give more specific advice.

    I understand there is something that breaks the printing and if it's possible to try to isolate it in a sample program which will print with the default printer settings without using any Reporting libraries. This test would be of great help for us to further research the case. If the output is cut to A4, then we would assume that there is something about the default printer settings of the current used printer.

    Thank you in advance for your cooperation.

    Regards,
    Silviya
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  13. Pete
    Pete avatar
    2 posts
    Member since:
    Apr 2014

    Posted 5 days and 15 hours ago in reply to Silviya Link to this post

    Could you please keep me informed of your testing when you have access to a continuous paper printer.

    The one we're using is an EPOSN TM-T88V, which is a very common printer in EPoS applications.

  14. Yves
    Yves avatar
    7 posts
    Member since:
    Apr 2015

    Posted 5 days and 15 hours ago Link to this post

    We are also using mostly EPSON TM-T88V and TM-T88VI which is the newer version.

    I did a sample project for you only using minimalistic printing functions.

    Also attached a screenshot of running programm to see default windows values for "printing" variables.

     

    You could also deliver me some pdb's and i could debug it for you :-P :-D  

     

    See:

    https://ufile.io/cubve

     

  15. Milen
    Admin
    Milen avatar
    169 posts

    Posted 2 days and 15 hours ago Link to this post

    Hi all,

    The referenced sample app prints a single page with long text, which on fixed size printer leads to cut text in the end of the page. I am not sure how this relates to the issue. No screenshot is attached.

    What we will do is to acquire a printer to test locally. Once we have anything to share, we will do so.

    The pdb. files get shipped with the installation of the Telerik Reporting product, the default location is C:\Program Files (x86)\Progress\Telerik Reporting R3 2018\Bin

    Regards,
    Milen
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  16. Yves
    Yves avatar
    7 posts
    Member since:
    Apr 2015

    Posted 2 days and 10 hours ago Link to this post

    Hi Miles,

     

    thanks for your reply. Your forum gave me an 500 error when posting my last post. Since the post was visible I thought the attachments were also uploaded.

    no this sample application prints an very long ticket on a thermal printer. notging gets cut.

    i can’t upload my screenshot currently but I attached a foto, what is the result of this sample app.

     

    hopefully it gets uploaded now. This is the result when printed on a thermal printer with the attached app. 

     

Back to Top