Problem in Printing a persian(or arabic) document
-
Hi, i need to print a document in my c# application, this document has some utf8 characters because it is in persian language (these characters also can be found in arabic), but when i use printdocument and printdialog components the printed page is full of nonsense characters, i think it must be about the language and i tried to google it but i couldn't find another component in net, can anybody please help me??? Roshanakak
-
Hi, i need to print a document in my c# application, this document has some utf8 characters because it is in persian language (these characters also can be found in arabic), but when i use printdocument and printdialog components the printed page is full of nonsense characters, i think it must be about the language and i tried to google it but i couldn't find another component in net, can anybody please help me??? Roshanakak
hi roshanak, this problem is quite common between HP printer's, if thats the case u can get support from HP official site. if that couldn't help u, the only way is storing the graphics in a bitmap and then print the bitmap like this: private void printDocument_printPage(object sender, PrintEventArgs e) { Bitmap bmpPrint = new Bitmap(1000,1000); Graphics g = Graphics.FromImage(bmpPrint); /* Draw what u need using "g". */ e.Graphics.drawImage(bmpPrint); } the quality is not as good as is should be, unless u change the printing resolution.