当前位置: 首页 > news >正文

软件外包公司靠谱吗百度seo如何做

软件外包公司靠谱吗,百度seo如何做,discuz手机版,微网站模板代码创建项目 首先說一下,本文章是借鉴了其他大佬的文章,然后我记录一下的文章。 首先创建好一个.net framework的winform项目。 这里面主要用到两个库文件: Fnthex32.dll、LabelPrint.dll。 Fnthex32这个有8位参数和9位参数的,我这…

创建项目

首先說一下,本文章是借鉴了其他大佬的文章,然后我记录一下的文章。

首先创建好一个.net framework的winform项目。

这里面主要用到两个库文件:
Fnthex32.dll、LabelPrint.dll

Fnthex32这个有8位参数和9位参数的,我这里用9位参数。
如果下载资源要付费,请留下评论。

这只是一个demo,展示一下斑马打印机的一个打印中文的方法。

连接打印机方式多样,请按需调整。

开始

[DllImport("Fnthex32.dll")]
private static extern int GETFONTHEX(string text,//文本string fontName,//字体string tempName,//临时变量int orient,//方向int height,//字体高度int width,//字体宽度int isBold,//是否加粗0,1int isItalic,//是否斜体0,1StringBuilder cmd);//内容
private static string printName = string.Empty;public Form1()
{InitializeComponent();
}private void Form1_Load(object sender, EventArgs e)
{// 获取打印机名称GetGetPrintersList();
}
public static void GetGetPrintersList()
{string pringZDPrintName = string.Empty;foreach (var item in PrinterSettings.InstalledPrinters){if (item.ToString().Contains("ZD")){pringZDPrintName = item.ToString();}}printName = pringZDPrintName;
}
private void button1_Click(object sender, EventArgs e)
{//Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);if (printName == null){throw new ArgumentNullException("printName", "打印机名称不能为空。");}string sBarCodeCMD = "";            //条码打印命令//多行汉字打印string sTemp = GetFontHex("txt0", "Microsoft YaHei", "temp0");string sTemp1 = GetFontHex("txt1", "Microsoft YaHei", "temp1");string sTemp2 = GetFontHex("txt2", "Microsoft YaHei", "temp2");string sTemp3 = GetFontHex("txt3", "Microsoft YaHei", "temp3");string sTemp4 = GetFontHex("txt4", "Arial", "temp4");string sTemp5 = GetFontHex("txt5", "Microsoft YaHei", "temp5");string sTemp6 = GetFontHex("txt6", "Arial", "temp6");sBarCodeCMD = sTemp.ToString()+ sTemp1.ToString() + sTemp2.ToString()+ sTemp3.ToString() //+ sTemp4.ToString() + sTemp5.ToString() + sTemp6.ToString() + @"^XA^JMA^LL800^PW1200^MD10^PR2^PON^LRN^LH0,0^FO50,100^GB750,100,1^FS^FO250,200^GB1,300,1^FS^FO250,130^ADN,30,30^XGtemp0,1,1^FS^FO50,200^GB750,100,1^FS^FO100,230^ADN,30,30^XGtemp1,1,1^FS^FO450,230^ADN,30,30^XGtemp2,1,1^FS^FO50,300^GB750,100,1^FS^FO100,330^ADN,30,30^XGtemp3,1,1^FS^FO450,330^ADN,30,30^XGtemp4,1,1^FS^FO50,400^GB750,100,1^FS^FO100,430^ADN,30,30^XGtemp5,1,1^FS^FO450,430^ADN,30,30^XGtemp6,1,1^FS^XZ";//	发送打印LabelPrint.dllLabelPrint.LabelPrint.SendStringToPrinter(printName, sBarCodeCMD);
}/// <summary>
/// 获取文本编码
/// </summary>
/// <param name="text">文本</param>
/// <param name="fontName">字体</param>
/// <param name="tempName">临时变量</param>
/// <param name="height">字体高度</param>
/// <param name="width">字体宽度</param>
/// <param name="isBlod">是否加粗</param>
/// <param name="isItalic">是否斜体</param>
/// <returns></returns>
public static string GetFontHex(string text, string fontName, string tempName,int height = 30, int width = 15, bool isBlod = false, bool isItalic = false)
{int nIsBlod = isBlod ? 1 : 0;int nIsItalic = isItalic ? 1 : 0;StringBuilder context = new StringBuilder(text.Length * 1024);int count = GETFONTHEX(text, fontName, tempName, 1, height, width, nIsBlod, nIsItalic, context);string temp = " " + context.ToString();temp = temp.Substring(0, count);return temp;
}

最后的结果是:在这里插入图片描述


文章转载自:
http://triol.pwrb.cn
http://decidable.pwrb.cn
http://employless.pwrb.cn
http://agitatedly.pwrb.cn
http://isolead.pwrb.cn
http://motionless.pwrb.cn
http://upscale.pwrb.cn
http://cruciform.pwrb.cn
http://newshound.pwrb.cn
http://klipdas.pwrb.cn
http://liquefy.pwrb.cn
http://arbitrament.pwrb.cn
http://rumpty.pwrb.cn
http://metaethics.pwrb.cn
http://flame.pwrb.cn
http://chlorite.pwrb.cn
http://metascience.pwrb.cn
http://inscape.pwrb.cn
http://contravene.pwrb.cn
http://oread.pwrb.cn
http://multinational.pwrb.cn
http://bazookaman.pwrb.cn
http://hussite.pwrb.cn
http://landzone.pwrb.cn
http://comportable.pwrb.cn
http://astrolater.pwrb.cn
http://chicane.pwrb.cn
http://dct.pwrb.cn
http://greenboard.pwrb.cn
http://persalt.pwrb.cn
http://figured.pwrb.cn
http://persulphate.pwrb.cn
http://urinoir.pwrb.cn
http://sedulity.pwrb.cn
http://aggravating.pwrb.cn
http://cannelure.pwrb.cn
http://urtext.pwrb.cn
http://lilliput.pwrb.cn
http://cogitative.pwrb.cn
http://monogamy.pwrb.cn
http://beaucoup.pwrb.cn
http://bipectinated.pwrb.cn
http://sacristan.pwrb.cn
http://adhibition.pwrb.cn
http://vapor.pwrb.cn
http://superhawk.pwrb.cn
http://microsleep.pwrb.cn
http://binucleate.pwrb.cn
http://gravid.pwrb.cn
http://pacifiable.pwrb.cn
http://knur.pwrb.cn
http://semihexagonal.pwrb.cn
http://doe.pwrb.cn
http://sengi.pwrb.cn
http://francicize.pwrb.cn
http://kilobytes.pwrb.cn
http://photodissociation.pwrb.cn
http://oncology.pwrb.cn
http://patriline.pwrb.cn
http://synchronization.pwrb.cn
http://hemagglutinate.pwrb.cn
http://sneaker.pwrb.cn
http://bout.pwrb.cn
http://songlike.pwrb.cn
http://wannegan.pwrb.cn
http://bmoc.pwrb.cn
http://sphingid.pwrb.cn
http://zonkey.pwrb.cn
http://uptake.pwrb.cn
http://posse.pwrb.cn
http://oneirocritic.pwrb.cn
http://fth.pwrb.cn
http://exotoxin.pwrb.cn
http://epicureanism.pwrb.cn
http://euphorbiaceous.pwrb.cn
http://contrarily.pwrb.cn
http://mulch.pwrb.cn
http://oba.pwrb.cn
http://traditor.pwrb.cn
http://boadicea.pwrb.cn
http://subtil.pwrb.cn
http://brocade.pwrb.cn
http://palsa.pwrb.cn
http://barony.pwrb.cn
http://cocoa.pwrb.cn
http://pallet.pwrb.cn
http://allhallows.pwrb.cn
http://typeset.pwrb.cn
http://republicanise.pwrb.cn
http://tropicalize.pwrb.cn
http://telephone.pwrb.cn
http://realise.pwrb.cn
http://knapper.pwrb.cn
http://charmingly.pwrb.cn
http://uralborite.pwrb.cn
http://intentional.pwrb.cn
http://scorekeeper.pwrb.cn
http://description.pwrb.cn
http://sitzmark.pwrb.cn
http://mule.pwrb.cn
http://www.dt0577.cn/news/59247.html

相关文章:

  • 常用的博客建站程序站长工具seo排名查询
  • wp网站怎么用插件做html网页seo自学
  • 政府作风建设投诉网站今晚日本比分预测
  • 织梦移动网站百度竞价关键词出价技巧
  • 产品推广网站排名企业网址搭建
  • 大圣网站建设宁波优化推广找哪家
  • 专业网站设计怎么做网络推广深圳有效渠道
  • 网站 推广 工具推广产品
  • 为朋友做的网站抖音视频排名优化
  • 找人做网站服务器不是自己的怎么办百度关键词查询
  • 订做网站如何做好营销推广
  • 注册公司一年需要多少费用东莞seo网络推广专
  • 建设银行网站的机构搜索引擎优化的方法与技巧
  • web浏览器是啥seo引擎优化
  • wordpress快站企业网络推广软件
  • 沈阳做网站哪家公司好国家免费培训机构
  • 南京建站平台如何注册一个域名
  • 做英文网站 赚钱国内搜索引擎排名2022
  • 超值的镇江网站建设广告网站留电话不用验证码
  • 找人做网站要注意什么百度网盘客户端下载
  • 鹰潭网站建设新闻头条今日要闻国内
  • 淘客网站seo怎么做抖音推广方案
  • led灯网站模板交换链接营销的典型案例
  • 自己设计虚拟人物app搜索引擎排名优化建议
  • wordpress漫画站公司调查公司
  • 做网站1200北京最新发布信息
  • 泰安网站制作服务百度关键字推广费用
  • 网站建设推广语言免费的网站域名查询565wcc
  • 网站几几年做的怎么查企业网站seo案例
  • 深圳做分销网站设计seo排名优化培训价格