Reputation: 1669
I am generating PDF document using iTextSharp (winforms), now i need to print this generated PDF document using a Label Printer.
I have multiple Printers installed on my machine, so with VB.net I need to Select a certain Thermal printer.
Once the Printer is Selected I need to Specify Shipping Label Size (width & height).
So Once Label Printer is selected and I specified custom Label dimensions, I would like the label to be printed without any user action (Like skip the Confitm box to print).
I dont need the full code, I just need someone to put me into right direction.
Thanks
Upvotes: 0
Views: 2213
Reputation: 15813
You can use the PrintDocument object. Use the Print method, and do the actual printing in the PrintPage handler. To do this, you can output to the graphics object of the parameter PrintPageEventArgs in your PrintPage handler.
Upvotes: 1