Hello sir,
I have barcode scanned and after that generate xml file.
Please given demo as well as fast.
Thanks & Regards
Jaydeep
DataSet ds = new DataSet("BarcodeDataSet");
DataTable dt = new DataTable("BarcodeDataTable");
ds.Tables.Add(dt);
DataColumn dc = new DataColumn("BarcodeImage", typeof(byte[]));
dt.Columns.Add(dc);
DataRow dr = dt.NewRow();
byte[] array;
using (MemoryStream ms = new MemoryStream())
{
this.barCodeControl1.SaveToStream(ms, ImageFormat.Png);
array = ms.ToArray();
}
dr["BarcodeImage"] = array;
dt.Rows.Add(dr);
File.WriteAllText("result.xml", ds.GetXml());
System.Diagnostics.Process.Start("result.xml");