摘要:
C# 打印小票 POS 最近在写一个餐饮的收银系统,以前从来没有碰过打印机这玩意。感觉有些无从下手,在前面做报表时,总想找第三方的控件来用用,结果始终不行没搞定、没研究透,催得急没办法还是的动手自己写个,哈...查了些相关的资料,感觉也不难,没多久就搞定了。主要用到PrintDocument和Pri 阅读全文
posted @ 2013-08-26 18:02
无恨星晨
阅读(22459)
评论(13)
推荐(2)
摘要:
public static string GetPrinterStatus(string PrinterName) { int intValue = GetPrinterStatusInt(PrinterName); string strRet = string.Empty; switch (int 阅读全文
posted @ 2013-08-26 18:00
无恨星晨
阅读(2223)
评论(0)
推荐(0)
摘要:
List<string> print = Cprinter.GetLocalPrinter(); /// <summary> /// 获取所有打印机 /// </summary> public class Cprinter { private static PrintDocument fPrintD 阅读全文
posted @ 2013-08-26 17:59
无恨星晨
阅读(3335)
评论(0)
推荐(0)
摘要:
C#追加文件 StreamWriter sw = File.AppendText(Server.MapPath(".")+"\\myText.txt"); sw.WriteLine("追逐理想"); sw.WriteLine("kzlll"); sw.WriteLine(".NET笔记"); sw. 阅读全文
posted @ 2013-08-26 14:40
无恨星晨
阅读(7724)
评论(0)
推荐(0)