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 SharmaRank #1,974 · 741 reputationPosted Oct 3, 2012, 12:16 PM EDT
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
venkata kumarRank #5,034 · 314 reputationPosted Sep 30, 2012, 9:02 PM EDT
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();
divya146 reputationPosted Oct 2, 2012, 5:41 AM EDT
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
Dharmesh SharmaRank #1,974 · 741 reputationPosted Oct 3, 2012, 12:18 PM EDT
now this barcode add to printer obj for print command
harl doof8 reputationPosted Jan 30, 2013, 10:41 PM EST
edword2 reputationPosted Aug 27, 2013, 1:18 AM EDT
leona lewis22 reputationPosted Nov 26, 2013, 4:45 PM EST
Uchiha Itachi40 reputationPosted May 26, 2014, 1:22 AM EDT