Print data in text file out to paper

This is a discussion on Print data in text file out to paper within the C Programming forums, part of the General Programming Boards category; I want to print data in text file out to the paper 110011110 110011110 My data in text file is ...

  1. #1
    Registered User
    Join Date
    Jan 2002
    Posts
    68

    Lightbulb Print data in text file out to paper

    I want to print data in text file out to the paper

    110011110
    110011110

    My data in text file is above but I want to print solid black and solid white to paper not number 1 and 0. I want to change 1 in the above data to solid black (which have 2 pixel width and 4 pixel height) and 0 in the above data to solid white (which have 2 pixel width and 4 pixel height)

    Could you tell me the how to do that and print to paper by use this below function?

    OpenPrinter
    StartDocPrinter
    WritePrinter
    EndDocPrinter
    ClosePrinter

    or use

    StartDoc
    StartPage
    EndPage
    EndDoc

    Thank you for your help.

  2. #2
    Registered User
    Join Date
    Jul 2002
    Posts
    66
    Find some good characters in the ASCII set and use those to replace the 1's and 0's when you write to the printer. 32 and 219 for instance.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Formatting a text file...
    By dagorsul in forum C Programming
    Replies: 12
    Last Post: 05-02-2008, 03:53 AM
  2. Personal Program that is making me go wtf?
    By Submeg in forum C Programming
    Replies: 20
    Last Post: 06-27-2006, 12:13 AM
  3. Possible circular definition with singleton objects
    By techrolla in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2004, 09:46 AM
  4. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  5. what does this mean to you?
    By pkananen in forum C++ Programming
    Replies: 8
    Last Post: 02-04-2002, 02:58 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21