Single continuous page receipt

12 posts, 0 answers
  1. Kofi
    Kofi avatar
    2 posts
    Member since:
    Nov 2015

    Posted 28 Nov 2015 Link to this post

    hello ,

    i'm facing problem in printing long receipt , it cut after certian page regarding the speceifed lengh in heigh in report.

     im in trouble because i'm the one who suggest using your product , please help

  2. Stef
    Admin
    Stef avatar
    3036 posts

    Posted 02 Dec 2015 Link to this post

    Hello Kofi,

    Reports are paged with fixed sizes and printed based on the PageSettings properties.

    Test settings a Report.PageSettings.PaperKind and Report.PageSettings.PaperSize to such values that allows you to gather the whole content on a single page. Thus when you print there will be only one page, and the printer will not cut the paper.

    There is also an approved feature request for having support for print settings for roll paper. Feel free to vote for the feature, as features are considered for implementation based on the demand for them.

    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
  3. DevCraft banner
  4. Ahmed
    Ahmed avatar
    7 posts
    Member since:
    Mar 2013

    Posted 15 Dec 2015 in reply to Stef Link to this post

    what if i designed this report from designer not draw it by code ? and what will happened in the case that receipt is shorter, kindly reply me as i'm facing this problem in my work too..relay very serious case i swear
  5. Ahmed
    Ahmed avatar
    7 posts
    Member since:
    Mar 2013

    Posted 16 Dec 2015 in reply to Stef Link to this post

    Is there setting i need to apply on the thermal printer , it's type : FP1000
  6. Stef
    Admin
    Stef avatar
    3036 posts

    Posted 17 Dec 2015 Link to this post

    Hello Ahmed,

    If the report is printed directly from a Report Designer's preview, you have option to manually change the page settings of the document. This will allow you to set manually paper size gathering the whole content.

    If reports are only designed in the Standalone Report Designer, and then are printed from code. the TRDX file's content can be deserialized into a Telerik.Reporting.Report object, which allows you to change the report's PageSettings properties in code.

    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
  7. Ahmed
    Ahmed avatar
    7 posts
    Member since:
    Mar 2013

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

    hello , thanks alot for your reply , kindly give me a small example of how do this ..thanks again
  8. Ahmed
    Ahmed avatar
    7 posts
    Member since:
    Mar 2013

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

    i got it now , hoping it works as i'm in bas situation , but the question why it didn't work when i chanded width from desginer
  9. Stef
    Admin
    Stef avatar
    3036 posts

    Posted 23 Dec 2015 Link to this post

    Hello Ahmed,

    The suggested settings should be applied on the report's PageSettings.
    You can serialize back in TRDX file the report, which is modified at run-time, to compare the differences and to determine if the changes can be applied while designing the report.

    I hope this information helps you.

    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. Ahmed
    Ahmed avatar
    7 posts
    Member since:
    Mar 2013

    Posted 24 Dec 2015 in reply to Stef Link to this post

    i tried the following code but invain

     

                        using (System.Xml.XmlReader xmlReader = System.Xml.XmlReader.Create(ReportPath, settings))
                        {


                            Telerik.Reporting.XmlSerialization.ReportXmlSerializer xmlSerializer = new Telerik.Reporting.XmlSerialization.ReportXmlSerializer();
                            Telerik.Reporting.Report report = (Telerik.Reporting.Report)xmlSerializer.Deserialize(xmlReader);
                            report.PageSettings.PaperKind = PaperKind.Custom;
                            report.PageSettings.PaperSize = new Telerik.Reporting.Drawing.SizeU(Telerik.Reporting.Drawing.Unit.Cm(100), Telerik.Reporting.Drawing.Unit.Cm(500));
                            PSetting.Copies = NoOfCopies;
                            reportProcessor.PrintReport(report, PSetting);
                        }

    it still cut it
  11. Stef
    Admin
    Stef avatar
    3036 posts

    Posted 25 Dec 2015 Link to this post

    Hi Ahmed,

    The result page must be 100x500 in CM. Please test exporting the report in PDF - Exporting Report Programmatically.
    Then print it from the PDF reader to verify the settings are correct and the printer keeps the report's PageSettings.


    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
  12. Ahmed
    Ahmed avatar
    7 posts
    Member since:
    Mar 2013

    Posted 27 Dec 2015 in reply to Stef Link to this post

    i tried printit with crystal , what it needed to make a custom page..and it printed normaly...i like your products and didn't want to move to crystal..please try your solution and till me if it valid with you
  13. Stef
    Admin
    Stef avatar
    3036 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