protected void Btn_print_all_Click(object sender, EventArgs e) { Int32 itoteid = 0; OverflowtoteDAO ofdao = new OverflowtoteDAO(); DataSet ofclass = new DataSet(); DataTable oftable = new DataTable("oftotetable"); ofclass = ofdao.Search_OFTote(); oftable = ofclass.Tables[0]; foreach (DataRow row in oftable.Rows) { itoteid = Int32.Parse(row["tote_id"].ToString()); string machinename = Shared.UserHostName; //System.Environment.MachineName; string reportname = "10"; //ReportNameEnum.Trolley.ToString(); string devicetype = "6"; //DeviceType.ZS.ToString(); //HttpContext.Current.Response.Write("before calling webservice " + machinename + reportname + devicetype); PrintService ps = new PrintService(); string test = ps.PrintLabel(reportname, machinename, devicetype, itoteid, true); //HttpContext.Current.Response.Write("after print" + test); } }
public void BindData() { OverflowtoteDAO overflowtotedao = new OverflowtoteDAO(); DataSet dataSet = overflowtotedao.Search_OFTote(); RadGrid1.DataSource = dataSet.Tables[0]; }