css - How to print labels from a label printer using html -
i have application need print labels browser. have done before when printing sheet of labels (i.e. avery 5160). straightforward requires combination of html , css , content , can print page normal 8.5x11 printer.
my dilemma, however, need print labels label printer, kind prints 1 @ time roll. specific model used brother ql-500. part struggling number of labels printed not same. 1, 4, 15. how can style page printer know each label needs printed individually, rather printing out of content on 1 long label. know if possible / has done before successfully?
there no way webpage query browser's attached printers paper-sizes or other attributes.
however, css3's paged-media module allow webpage declare paper sizes , orientation expects, however in working draft status don't believe browsers support it.
the best can provide own listing of paper sizes , use javascript re-layout page accordingly) , warn users (in big, red, bold text preferably) must ensure size selection on page matches printer settings exactly.
the other option use system google cloud print, user installs program on computer controls printer (via google) , website send print request google instead of using browser's own printing functionality.
Comments
Post a Comment