Answered Printing to a label printer

Chase

New member
Joined
Aug 26, 2020
Messages
2
Programming Experience
1-3
Hi there

I am busy with a WPF application where I want to print item barcodes. I've tried using Migradoc and iTextSharp but the sizing is built more for an A4 type of paper size. Does anyone have a suggestion for me on what to use? or maybe how to resize my data to fit within a label sticker when printing
 

Attachments

  • bCodes.jpeg
    bCodes.jpeg
    76.3 KB · Views: 36
Set the page size in iTextSharp. See linked response that does this using VB.NET. Translating into C# shouldn't be too hard:
 
Also see initial notes here iTextSharp 5.5.13.1 about using itext7 instead. (I think SetDefaultPageSize of PdfDocument is used in itext7)
 
Thanks for the advice, I saw that we need to get the SDK of the label printer too.
Set the page size in iTextSharp. See linked response that does this using VB.NET. Translating into C# shouldn't be too hard:
 
Back
Top Bottom