1
尝试打印热敏打印机中的泰米尔字符。并得到'????'或任何其他垃圾字符。我使用的代码如下,代码为 。RawPrinter助手:打印机不打印泰米尔语字符
Print(eInit + 'நன்றி');
public void Print(string Line)
{
prn.SendStringToPrinter(PrinterName, Line);
}
public bool SendStringToPrinter(string szPrinterName, string szString)
{
bool functionReturnValue = false;
if (PrinterOpen)
{
IntPtr pBytes = default(IntPtr);
Int32 dwCount = default(Int32);
Int32 dwWritten = 0;
dwCount = szString.Length;
pBytes = Marshal.StringToCoTaskMemAnsi(szString);
functionReturnValue = WritePrinter(hPrinter, pBytes, dwCount, ref dwWritten);
Marshal.FreeCoTaskMem(pBytes);
}
else
{
functionReturnValue = false;
}
return functionReturnValue;
}
瞧瞧......它正在工作......非常感谢你..你让我的一天。 – Ameena