Printing barcode labels from a web page

前端 未结 10 1266
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-09 18:48

I am working on an ASP.Net web application that must print dynamically created labels on standard Avery-style label sheets (one particular size, so only one overall layout).

10条回答
  •  失恋的感觉
    2020-12-09 19:24

    I also struggled with the HTML/CSS approach due to the inconsistent printing behaviour across browsers.

    I created a C# library to produce Avery Labels from ASP.NET which I hope you might find useful:

    https://github.com/wheelibin/SharpPDFLabel#readme

    You can add images and text to the labels, and it's easy to define more labels types.

    (I use it for barcode labels, the barcode is generated as an image and then added to the label using this library.)

    Cheers

提交回复
热议问题