[WebMethod(Description = "Impression d'une etiquette article")] public void Imp_Etiquette_Article(string SITNUM, string ARTCOD) { string ls_Libelle = ""; SqlConnection SqlCon = new SqlConnection(ConnectionString); SqlDataAdapter SqlDa = new SqlDataAdapter(); SqlDa.SelectCommand = new SqlCommand("T_ARTICLE_SELECT_display", SqlCon); SqlDa.SelectCommand.CommandType = CommandType.StoredProcedure; SqlDa.SelectCommand.Parameters.AddWithValue("@artcod", ARTCOD); SqlDa.SelectCommand.Parameters.AddWithValue("@sitnum", SITNUM); SqlDa.Fill(Ds); SqlCon.Close(); if(Ds.Tables[0].Rows.Count>0) { if (Ds.Tables[0].Rows[0]["ARTLIB"] != null && Ds.Tables[0].Rows[0]["ARTLIB"] != DBNull.Value) { ls_Libelle = Convert.ToString(Ds.Tables[0].Rows[0]["ARTLIB"]); } Process.Start(@"C:\Program Files\ImpEtiquetteStock.exe", ARTCOD + " " + ls_Libelle); } }