求助,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"); }打不出来,请高手指点,万分感谢!
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"); }打不出来,请高手指点,万分感谢!
未能从程序集“Evo.Utility, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null”中加载类型“Evo.Utility.Code128.FontHex”,因为方法“GETFONTHEX”没有实现(没有 RVA)。[DllImport("fnthex32.dll")]
public static extern int GETFONTHEX(
string BarcodeText,
string FontName,
string FileName, 多加了这个是不是不行int Orient,
int Height,
int Width,
int IsBold,
int IsItalic,
StringBuilder ReturnBarcodeCMD);
[email protected] 谢谢