Click here to Skip to main content
15,888,210 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi 
I have little problem but I do not know how to code this, I have textile shop for sell goods by yarda like meter.
the problem is I want to print barcode contains id name item and item name total of yards and total of price
I want when I enter qty of product the zebra barcode print level and I stick this level in good and the custumer give goods to saleman 
the saleman scan level and show in system item name and number of yards. the siniore like acless scale used in grocerry but in appllication.


What I have tried:

try
{
    if (itm_id.Text == "")
        return;

    if (ConnClass.conbase.State == ConnectionState.Open)
    {
        ConnClass.conbase.Close();

    }
    ConnClass.conbase.Open();
    //var idtms = itm_id.Text;
    //int iditm_int = int.Parse(itm_id.Text);
    //int itmid = int.Parse(itm_id.Text);
    string Itm_Show_qry = "select * from ITEM where ITM_ID='" +Strings.Trim(this.itm_id.Text)+"'";
    OleDbDataAdapter itm_da = new OleDbDataAdapter(Itm_Show_qry, ConnClass.conbase);
    DataSet itm_ds = new DataSet();
    itm_da.Fill(itm_ds);
    if (itm_ds == null)
        return;
    if (itm_ds.Tables[0].Rows.Count > 0)
    {


        itm_ar_name.Text = itm_ds.Tables[0].Rows[0]["ITM_NAME"].ToString();


        //itm_barcode.Text = itm_ds.Tables[0].Rows[0]["ITM_CODE"].ToString();

        itm_price.Text = itm_ds.Tables[0].Rows[0]["ITM_PRICE"].ToString();
        barcodelebel.Text = itm_ds.Tables[0].Rows[0]["ITM_CODE"].ToString();
        itmQty.Text = "1";

    }



}
catch (Exception ee)
{
    MessageBox.Show(ee.Message, "AB_Account", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
Posted
Comments
Richard MacCutchan 17-Sep-18 12:49pm    
Google for 2D barcode.
ZurdoDev 17-Sep-18 16:52pm    
What exactly do you want from us?
MadMyche 18-Sep-18 9:30am    
Do it like the grocery does; the barcode they do is split, left half is the item's PLU and the right is the price. But first you should fix your SQL statement and parameterize it

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900