Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Problem in Printing a persian(or arabic) document

Problem in Printing a persian(or arabic) document

Scheduled Pinned Locked Moved C#
helpcsharpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Roshanakak
    wrote on last edited by
    #1

    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

    R 1 Reply Last reply
    0
    • R 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

      R Offline
      R Offline
      Ramin Barati
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups