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”));
{
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类