Print invoice to single continuous page (roll paper)

15 posts, 0 answers
  1. rafi
    rafi avatar
    29 posts
    Member since:
    Mar 2014

    Posted 18 Jun 2014 Link to this post

    Hello,
    We are using Telerik Reporting tool to print an invoice.
    We succeeded make and display the report but we have a problem while print it to an invoice page:
    We don't know how can we print it to one continous page. We don't know what will be the length of the invoice because it's length is dynamic. sometimes the invoice is short and sometimes is long.
    So, we cannot define in design time the height of the report in page settings.
    Is there anyway to define auto height so that the whole report will be print in one continuous page?

    Thanks,
    Yocheved
  2. Stef
    Admin
    Stef avatar
    3053 posts

    Posted 20 Jun 2014 Link to this post

    Hi Yocheved,

    Telerik Reporting prints in a page oriented format and it is not possible to make any adjustment for variable page height.

    Knowing the report's layout, the used sizes in it and the amount of data, on a trial error basis you can set the report's PageSettings (PaperSize, Landscape, Margins and etc.) prior to processing the report.

    Regards,
    Stef
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. DevCraft banner
  4. rafi
    rafi avatar
    29 posts
    Member since:
    Mar 2014

    Posted 26 Jun 2014 in reply to Stef Link to this post

     I thought the option to set the page height at run-time, 
    By calculating the page height based on the amount of records. 
    And set it at run-time. 
    Something like this: 
    {
       InitializeComponent (); 
       this.PageSettings.PaperSize.Height.Add (number of rows * height of each line);
    }
     
    Can do this? 

    How can I get the report data-source at run-time?(to get length count)

    thank you very much!
    It is urgent to me..
    I'd love to get an answer as soon as possible.

    chani

  5. Stef
    Admin
    Stef avatar
    3053 posts

    Posted 26 Jun 2014 Link to this post

    Hi Chani,

    You can use a report parameter in a binding to the report's PageSettings.PaperSize property.

    At run-time in the start application you can retrieve the data and analyze it - amount of records, what page size will be needed to gather the whole rendered data into one page. Then assign the data to the report. Finally, pass the controlling report parameter's value through the report source object that wraps the report instance, and process the report.

    Regards,
    Stef
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. rafi
    rafi avatar
    29 posts
    Member since:
    Mar 2014

    Posted 06 Jul 2014 in reply to rafi Link to this post

    Hi Stef,

    I'm quite new with this, Is it possible to get a small demo, Showing it working?!

    Thanks so much!
  7. Stef
    Admin
    Stef avatar
    3053 posts

    Posted 09 Jul 2014 Link to this post

    Hello Yocheved,

    Please check the attached demo project, which illustrates the suggested approach. The report has an integer report parameter which is used in a binding to the report's PageSettings.PaperSize via user function.

    We check the amount of data at run-time and based on the report layout and number of records determine what should be the physical size of a page to gather the whole report.

    I hope this helps you.

    Regards,
    Stef
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  8. rafi
    rafi avatar
    29 posts
    Member since:
    Mar 2014

    Posted 18 Jun 2015 in reply to Stef Link to this post

    Hi,

    We have a big problem with this solution,

    when we print the invoice it prints it on 2 pages instead of 1,

    this means that the solution you offered dont working in PRINT_PREVIEW mode​.

     I spent a lot of hours to find a new solution to this big problem-

    I concluded that only when the PageSetting.Height is same or grater than the actual height (include header) 

    it does not print 2 pages.

     we work with kendo ui on MVC + durandal (SPA) Project.

     Do you have any solution for this?

    Thanks

    Yehudit

  9. Stef
    Admin
    Stef avatar
    3053 posts

    Posted 19 Jun 2015 Link to this post

    Hello Yehudit,

    Telerik Reporting does not support printing from thermal printers. The report document is a paged without option to specify endless dimensions. There is already such feature request approved by our product managers and considered for implementation.


    Until the feature is available, please test using custom PaperKind and proper PaperSize as report's PageSettings which allow you to gather the whole report's content on a single physical page.

    Regards,
    Stef
    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
  10. rafi
    rafi avatar
    29 posts
    Member since:
    Mar 2014

    Posted 22 Jun 2015 in reply to Stef Link to this post

     Hi,

    Thank you.

    but :

    1. Is there a forecast when the feature will be released.

    2.Is it possible to get an extensive explanation of exactly how I can solve it for now?
    Because it's really not clear what the proposal for now.

     It is realy urgent to me..

    Thank you very much!

    Yehudit

  11. rafi
    rafi avatar
    29 posts
    Member since:
    Mar 2014

    Posted 23 Jun 2015 Link to this post

    Hello,

    I created a project to reproduce the problem..

    (I could not attach the file-how could I pass it to you?)

    Could you check it and explain me how can solve it?

    You can see that in interactive mode the report contains single page but in print
    preview mode it is splitted to three or two pages.

    Thanks,

    Yehudit


  12. Stef
    Admin
    Stef avatar
    3053 posts

    Posted 23 Jun 2015 Link to this post

    Hello Yehudit,

    The idea is to check the sizes of the rendered documment and adjust on a trial-error basis the report's PageSettings in such manner that the content fits into a single physical page (the report's print preview).

    About attachments, in forums you can upload only images, and in support tickets you can attached ZIP files.

    Regards,
    Stef
    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. rafi
    rafi avatar
    29 posts
    Member since:
    Mar 2014

    Posted 23 Jun 2015 in reply to Stef Link to this post

    Hello Stef,

    thank you for the clear answer.

    if i use main report with several internal reports

    for example:

    in main report will be the store name and products list.

    and in the first sub report will be the credit details 

    and in the second sub report will be checks detail etc.

    Is the main report in this situation is not split into several reports on print-preview mode?

    Thanks

    Yehudit

  14. Kofi
    Kofi avatar
    2 posts
    Member since:
    Nov 2015

    Posted 28 Nov 2015 Link to this post

    I Still have this problem , set the height to 500 cm and it print till certain size then stop without continue..kindly help
  15. Stef
    Admin
    Stef avatar
    3053 posts

    Posted 02 Dec 2015 Link to this post

    Hi everyone,

    Please check my post in the Single continuous page receipt forum thread.

    Regards,
    Stef
    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. Stef
    Admin
    Stef avatar
    3053 posts

    Posted 14 Sep Link to this post

    Hello,

    As of Telerik Reporting R3 2016 printing on continuous paper is supported. There is a PageSettings.ContinousPaper property allowing you to print without paging the document.

    For more details, please check PageSettings Properties.

    Regards,
    Stef
    Telerik by Progress
    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
Back to Top
DevCraft banner