Info needed please

Received : 2007/08/27 13:07:41
Message : Hi again,
I forgot to mention the hardware device:
Datalogic USB Hand held reader such as: touch 65 touch 90.

Also I need to ask when I connect a barcode printer, can I print the codes in batch from the api?


This message was posted using Aspose.Live 2 Forum

Hello,

Aspose.Barcode provides the capablity to draw barcode image to given targets, which is also included the printer. I think you can use the common way to print the barcode images to printer using the .Net API.

using System.Drawing.Printing;

///


/// Handle btnPrint.Click.Print the barcode.
///

///
///
private void btnPrint_Click(object sender, EventArgs e)
{
PrintDocument printDoc = new PrintDocument();
printDoc.PrintPage += new PrintPageEventHandler(printDoc_PrintPage);
try
{
printDoc.Print();
}
catch (InvalidPrinterException)
{
MessageBox.Show("Invalid printer or printer not found!", "Printer Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
}

///


/// Print the barcode image.
///

///
///
private void printDoc_PrintPage(object sender, PrintPageEventArgs e)
{
e.Graphics.DrawImage(barCodeControl2.BarCodeImage , 0, 0);
}

Here is the winform demo with printing to a printer