C# 调用Fnthex32.dll如何实现打印汉字功能
求助,C#使用COM口来实现打印汉字
[DllImport("Fnthex32.dll ", CharSet = CharSet.Ansi)]
public static extern int GETFONTHEX(
string chnstr,
string fontname,
int orient,
int height,
int width,
int bold,
int italic,
StringBuilder hexbuf);
StringBuilder sb = new StringBuilder(255);
int count;
count = FontHex.GETFONTHEX("测试 ", "宋体", 0, 5, 30, 0, 0, sb);
if (count > 0)
{
Print(sb.ToString() + "^XA\n^FO10,140^XGOUTSTR01,1,2^FS");
}
打不出来,请高手指点,万分感谢!