0
votes

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

1
What type of application is this. If it's Silverlight (for example) you have to display the print dialog.ChrisF
Windows application. No web.highwingers

1 Answers

1
votes

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.