printing files through printer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kumarmanoj_pat
    New Member
    • Aug 2006
    • 5

    #1

    printing files through printer

    hi,

    i want to print my file through printer. i have already written a program to write text on printer. but the real problem is to print text in different size font and in different style (Bold,italic).
    if its possible through 'C' language program. please help me.
  • Banfa
    Recognized Expert Expert
    • Feb 2006
    • 9067

    #2
    It is nothing to do with the C language, if you can write to the printer then you will need to know the specific commands you need to send in order to use those different fonts.

    If you happen to be using Windows then you have gone about things the wrong way (probably). In Windows once you have a device context for the printer you can then draw to it in pretty much any font you wish.

    I am sure Linux probably has a standard way of writing to the printer too but I have no idea what it may be.

    Comment

    • tnga
      New Member
      • Jul 2007
      • 27

      #3
      In Linux you may open the device (since devices are seen as files to Linux) and output to that "file". Of course this is valid for plain-text.

      Comment

      Working...