hai friends
Iam generating a barcode image based on ItemNo with the help of item no iam diplaying barcode in another form by using dynamic picutebox.so how can i print this barcode (printform control)without using crystal reports?
iam using t-9650 printer for print barcode.Is there any setup reqiured to print or when we connect printer it executes automatically.
thanks in advance
Loading

Dharmesh SharmaPosted Oct 3, 2012, 4:16 PM
first you can create a own class then create a bitmap image and simple send command to printer
for example
in window form has one pic box and add your barcode bitmap to this pic bax and make a printer command for this pic .
Thanks
Dharmesh sharma
Uchiha ItachiPosted May 26, 2014, 5:22 AM
leona lewisPosted Nov 26, 2013, 9:45 PM
edwordPosted Aug 27, 2013, 5:18 AM
harl doofPosted Jan 31, 2013, 3:41 AM
Dharmesh SharmaPosted Oct 3, 2012, 4:18 PM
now this barcode add to printer obj for print command
divyaPosted Oct 2, 2012, 9:41 AM
so there is no need for writing additional code,just printer supplier code is enough to print barcode.Is this enough for priting barcode?
thanks®ards
divya
venkata kumarPosted Oct 1, 2012, 1:02 AM
u can get code for barcode printing from who ever printer supplied for u.
u need to expalin ur requirement to them they will give the code as fallows.
fallowing sample code given by my printer supplier according to my require ment.
LPrinter MyPrinter = new LPrinter();
MyPrinter.Open("Bar Code Label Print");
MyPrinter.Print("FMT(1,378d,152d,0,0,1)");
MyPrinter.Print("SFM(1)");
MyPrinter.Print("ACL()");
MyPrinter.Print("DMD(0)");
MyPrinter.Print("ADJ( 0,0,0)");
MyPrinter.Print("FAG(0).");
MyPrinter.Print("PIT(0d)");
MyPrinter.Print("COL(0)");
MyPrinter.Print("CFL(1,70d,0,7,1,2)");
MyPrinter.Print("FAG(0)");
MyPrinter.Print("BDN(2,4)");
MyPrinter.Print("BFL(2,20d,50d,3,5,6)");
MyPrinter.Print("FAG(0)");
MyPrinter.Print("PIT(0d)");
MyPrinter.Print("COL(0)");
MyPrinter.Print("CFL(3,120d,25d,1,1,1)");
MyPrinter.Print("FAG(0)");
MyPrinter.Print("PIT(0d)");
MyPrinter.Print("COL(0)");
MyPrinter.Print("CFL(4,20d,100d,1,1,1)");
MyPrinter.Print("FAG(0)");
MyPrinter.Print("PIT(0d)");
MyPrinter.Print("COL(0)");
MyPrinter.Print("CFL(5,159d,86d,1,1,1)");
MyPrinter.Print("FAG(0)");
MyPrinter.Print("PIT(0d)");
MyPrinter.Print("COL(0)");
MyPrinter.Print("CFL(6,178d,86d,1,1,1)");
MyPrinter.Print("FAG(0)");
MyPrinter.Print("PIT(0d)");
MyPrinter.Print("COL(0)");
MyPrinter.Print("CFL(7,230d,105d,2,1,1)");
MyPrinter.Print("DAT(1," + txtWebSite.Text + " )");
MyPrinter.Print("DAT(2,"+barcode+")");
MyPrinter.Print("DAT(3,PH:"+ txtPhone.Text + ")");
MyPrinter.Print("DAT(4," + txtFrom.Text + ")");
//MyPrinter.Print("DAT(4,)");
MyPrinter.Print("DAT(5,)");
MyPrinter.Print("DAT(6,)");
MyPrinter.Print("DAT(7,Rs:" + txtAmount.Text + "/-)");
MyPrinter.Print("PRT(1,0,1)");
MyPrinter.Close();