views:

171

answers:

2

Hi all I have spent 1 week of my life trying to print image that i take from graphic object to HP Officejet H470 which support PCL3. I try multi ways but nothing till now. My problem was to print arabic character to this printer but i couldn't becuase the don't support arabic font as i know, so i write arabic character to the graphic of the canvas by using (drawString()) method, then i try to print this graphic. Please if any one has any tip or any way, i will be very greatfull.

"\033%-12345X".getBytes("UTF8") // Universal End of langauge

"\033E".getBytes("UTF8") // Reset the printer ESC E

"\33&126A".getBytes("UTF8") // Page size to A4

"0\33*r3F".getBytes("UTF8") // Raster presentation

"0\33*t300R".getBytes("UTF8") // Raster Resolution

"\033*r0A".getBytes("UTF8") // Start raster graphic

"\033*b0M".getBytes("UTF8") // Set raster compression

/*

here i must set the image bytes but

how can i do that

:banghead:

*/

"\033*rC".getBytes("UTF8") // End raster graphics

"\033E".getBytes("UTF8") // Reste the printer

"\033%-12345X".getBytes("UTF8") // Universal End of langauge

A: 

Did you find the answer to this problem? I have almost the same requirement and I'm stuck in the same place. Any help will be appreciated!!!

A: 

Hi Sirna till now i didn't find the whole solution but i can tell you what is the infos i have my email [email protected]

Mohammed