Printing barcode labels from a web page

前端 未结 10 1288
佛祖请我去吃肉
佛祖请我去吃肉 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:20

    "precisely" and "printing" aren't two words that really work together that well. I did an OCR/OMR application a year or so ago, and even when building a PDF I saw significant differences between different print drivers and such. Because of that, my gut is to tell you that you might not have 100% success.

    If CSS and layout issues don't work that well for you, you might need to resort to building the labels as images using GDI+ -- at least that way you can use GetFontMetrics() and such.

    Good luck!

提交回复
热议问题