第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

條形碼 打印 asp.net

條形碼 打印 asp.net

慕工程0101907 2018-12-06 18:01:25
public string bar_code(object str, int ch, int cw, int type_code) { //str:輸入的字符串;ch:要顯示條形碼的高度;cw:要顯示條形碼的寬度;type_code:代碼類型 string strTmp = str.ToString(); string code = strTmp; // ToLower()將string轉(zhuǎn)化成小寫形式的副本,返回是使用指定區(qū)域的性的大小寫規(guī)則。 strTmp = strTmp.ToUpper(); int height = ch; int width = cw; //將傳入的參數(shù)進行轉(zhuǎn)化。 strTmp = strTmp.Replace("0", "_|_|__||_||_|"); ; strTmp = strTmp.Replace("1", "_||_|__|_|_||"); strTmp = strTmp.Replace("2", "_|_||__|_|_||"); strTmp = strTmp.Replace("3", "_||_||__|_|_|"); strTmp = strTmp.Replace("4", "_|_|__||_|_||"); strTmp = strTmp.Replace("5", "_||_|__||_|_|"); strTmp = strTmp.Replace("7", "_|_|__|_||_||"); strTmp = strTmp.Replace("6", "_|_||__||_|_|"); strTmp = strTmp.Replace("8", "_||_|__|_||_|"); strTmp = strTmp.Replace("9", "_|_||__|_||_|"); strTmp = strTmp.Replace("A", "_||_|_|__|_||"); strTmp = strTmp.Replace("B", "_|_||_|__|_||"); strTmp = strTmp.Replace("C", "_||_||_|__|_|"); strTmp = strTmp.Replace("D", "_|_|_||__|_||"); strTmp = strTmp.Replace("E", "_||_|_||__|_|"); strTmp = strTmp.Replace("F", "_|_||_||__|_|"); strTmp = strTmp.Replace("G", "_|_|_|__||_||"); strTmp = strTmp.Replace("H", "_||_|_|__||_|"); strTmp = strTmp.Replace("I", "_|_||_|__||_|"); strTmp = strTmp.Replace("J", "_|_|_||__||_|"); strTmp = strTmp.Replace("K", "_||_|_|_|__||"); strTmp = strTmp.Replace("L", "_|_||_|_|__||"); strTmp = strTmp.Replace("M", "_||_||_|_|__|"); strTmp = strTmp.Replace("N", "_|_|_||_|__||"); strTmp = strTmp.Replace("O", "_||_|_||_|__|"); strTmp = strTmp.Replace("P", "_|_||_||_|__|"); strTmp = strTmp.Replace("R", "_||_|_|_||__|"); strTmp = strTmp.Replace("Q", "_|_|_|_||__||"); strTmp = strTmp.Replace("S", "_|_||_|_||__|"); strTmp = strTmp.Replace("T", "_|_|_||_||__|"); strTmp = strTmp.Replace("U", "_||__|_|_|_||"); strTmp = strTmp.Replace("V", "_|__||_|_|_||"); strTmp = strTmp.Replace("W", "_||__||_|_|_|"); strTmp = strTmp.Replace("X", "_|__|_||_|_||"); strTmp = strTmp.Replace("Y", "_||__|_||_|_|"); strTmp = strTmp.Replace("Z", "_|__||_||_|_|"); strTmp = strTmp.Replace("-", "_|__|_|_||_||"); strTmp = strTmp.Replace("*", "_|__|_||_||_|"); strTmp = strTmp.Replace("/", "_|__|__|_|__|"); strTmp = strTmp.Replace("%", "_|_|__|__|__|"); strTmp = strTmp.Replace("+", "_|__|_|__|__|"); strTmp = strTmp.Replace(".", "_||__|_|_||_|"); strTmp = strTmp.Replace("_", "<span style='height:" + height + ";width:" + width + ";background:#FFFFFF;'></span>"); strTmp = strTmp.Replace("|", "<span style='height:" + height + ";width:" + width + ";background:#000000;'></span>"); if (type_code == 1) { return strTmp + "<BR>" + code; } else { return strTmp; } } 我用的這個方法,然后在pageload里面用?Response.Write(labTiao.Value = bar_code(en.VlidationCode, 30, 1, 0));來綁定條形碼。為什么子在ie上可以顯示條形碼,打印到A4紙上就沒有顯示條形碼了呢?
查看完整描述

1 回答

  • 1 回答
  • 0 關(guān)注
  • 540 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號