G
Guest
I am trying to print directly to an HP printer using winspool.drv API.
when I try English every thing works fine, when i try hebrew, I got garbge.
any suggestions?
code:
[ DllImport( "winspool.drv",CharSet=CharSet.Ansi,ExactSpelling=true,
CallingConvention=CallingConvention.StdCall)]
public static extern long WritePrinter(IntPtr hPrinter,string data, int
buf,ref int pcWritten);
string PCL5Commands = "<esc>(15H<esc>(s0p12.00h10.1h0s0b4102T <hebrew
letters> ";
WritePrinter(lhPrinter,PCL5Commands,PCL5Commands.Length,ref pcWritten);
thanks
shmuel
when I try English every thing works fine, when i try hebrew, I got garbge.
any suggestions?
code:
[ DllImport( "winspool.drv",CharSet=CharSet.Ansi,ExactSpelling=true,
CallingConvention=CallingConvention.StdCall)]
public static extern long WritePrinter(IntPtr hPrinter,string data, int
buf,ref int pcWritten);
string PCL5Commands = "<esc>(15H<esc>(s0p12.00h10.1h0s0b4102T <hebrew
letters> ";
WritePrinter(lhPrinter,PCL5Commands,PCL5Commands.Length,ref pcWritten);
thanks
shmuel