1. #1
    Sencha User
    Join Date
    Feb 2008
    Posts
    54
    Vote Rating
    0
    rtrocc is on a distinguished road

      0  

    Default Print from Ext application to a receipt printer

    Print from Ext application to a receipt printer


    Hey guys,

    I was curious to know if there are any extensions to accomplish printing receipts from a web application written in Ext. Maybe external libraries you guys may be aware of? I'd like to stick to javascript if possible, I know this can be done with java libraries and such, but if anyone knows of the easiest and simplest way to send a page's content to a receipt printer in the correct format, I would greatly appreciate some direction.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,656
    Vote Rating
    435
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Have you checked out using Adobe Air?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Feb 2008
    Posts
    54
    Vote Rating
    0
    rtrocc is on a distinguished road

      0  

    Default


    Quote Originally Posted by mitchellsimoens View Post
    Have you checked out using Adobe Air?
    I haven't, but does it offer the correct formatting that a receipt printer requires?

  4. #4
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,656
    Vote Rating
    435
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    Depends what formatting you need but chances are you could create any special formatting
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.

  5. #5
    Sencha User aw1zard2's Avatar
    Join Date
    Sep 2009
    Location
    Dallas, Texas
    Posts
    494
    Vote Rating
    4
    aw1zard2 is on a distinguished road

      0  

    Default


    One trick I did was open a new window with the receipt preview and once loaded then do window.print()

    Of course Air or a flash would be a lot more flexible in customizing the print dialog, forcing 1 printer, and etc.

    The opening a new window with the receipt preview and then print on loaded would most likely be the easiest.
    Since you can set window width and everything.


  6. #6
    Sencha User
    Join Date
    Feb 2008
    Posts
    54
    Vote Rating
    0
    rtrocc is on a distinguished road

      0  

    Default


    Thanks guys!

  7. #7
    Sencha - Community Support Team mystix's Avatar
    Join Date
    Mar 2007
    Location
    Singapore
    Posts
    6,232
    Vote Rating
    2
    mystix will become famous soon enough

      0  

    Default


    search for @steffen's PrinterFriendly extension in the UX forums.