当前上下文中不存在 RawPrinterHelper

.Net技术 码拜 8年前 (2016-02-27) 1020次浏览
 public static void PrintPos58()
{
string printername = “中崎 AB-58MK”;//这个要看打印机配置成什么名字,例如本人是中崎 AB-58MK
string filename = @”c:\demo.txt”;
string content = “hello world”;
File.WriteAllText(filename, content, Encoding.GetEncoding(“gb2312”));

RawPrinterHelper.SendFileToPrinter(printername, filename);

}
上面找了一段代码在网上,是pos80的打印代码,但是提示
错误 1 当前上下文中不存在名称“RawPrinterHelper” D:\jiayuan0620\jiayuan\pos58print.cs 35 13 jiayuan
求帮助!

解决方案

40

找的代码不全,不包含RawPrinterHelper类

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明当前上下文中不存在 RawPrinterHelper
喜欢 (0)
[1034331897@qq.com]
分享 (0)