Login | Register   
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: C++
Expertise: Beginner
Nov 9, 1999

Writing directly to a printer

Question:
How to write a text directly to printer port, such as lpt1?

Answer:
While there is no standard method of writing directly to a printer, you can try writing to stdprn. Some compilers define this additional file descriptor which is assigned by to the default printer. For example:


fprintf(stdprn, "hello);
DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap