求解决方案: WINCE 5.0 打印中文出现乱码??
目前我在英文CE 5.0设备用.NET CF 3.5 修改一个旧的系统程序,机器本身自带打印机。由于设备本身没有中文字体,我通过拷贝中文字库到WINDOWS\FONT, 以及在注册表做了些设置, 这样应用程序可以支持显示中文。 但是打印时一遇到中文, 打印出来的是??.打印调用的是native dll PRN_DLL.DLL。
[DllImport("PRN_DLL.dll", CharSet = CharSet.Auto)]
private static extern UInt32 PrinterOpen();
[DllImport("PRN_DLL.dll", CharSet = CharSet.Auto)]
private static extern UInt32 PrinterPrint(string pszData);
[DllImport("PRN_DLL.dll", CharSet = CharSet.Auto)]
private static extern UInt32 PrinterLineFeed(int nNum);
[DllImport("PRN_DLL.dll", CharSet = CharSet.Auto)]
private static extern UInt32 PrinterWaitComplete();
[DllImport("PRN_DLL.dll", CharSet = CharSet.Auto)]
private static extern UInt32 PrinterClose();
[DllImport("PRN_DLL.dll", CharSet = CharSet.Auto)]
private static extern UInt32 PrinterSetFont(int nMode, int nBold, int nHeight, int nWidth, int nUnder);
//2000, B2002, H2005, W2004, U2003
[DllImport("PRN_DLL.dll", CharSet = CharSet.Auto)]
public static extern UInt32 PrinterSetFontLang(int nCode);
[DllImport("PRN_DLL.dll", CharSet = CharSet.Auto)]
private static extern UInt32 PrinterSetInvert(int nInvert);
[DllImport("PRN_DLL.dll", CharSet = CharSet.Auto)]
public static extern UInt32 PrinterLoadImageFile(string pszFile);
[DllImport("PRN_DLL.dll", CharSet = CharSet.Auto)]
public static extern UInt32 PrinterImage(int nMode);
[DllImport("PRN_DLL.dll", CharSet = CharSet.Auto)]
public static extern UInt32 PrinterCloseImageFile();
现在我找不到关于PRN_DLL.DLL 函数头的具体信息,比如每个参数具体定义,应该要传如什么值等等,如果哪位知道请告诉我因该到哪里去找?
还有就是不知道这个问题有没有办法解决 WinCE 乱码 打印
补充:移动开发 , Windows Phone