rated by 0 users
This post has 1 Reply | 2 Followers

Top 50 Contributor
Posts 9
Shishir Bhattarai Posted: 02-04-2010 3:49 AM | लग गरिएको

how can i enable printer to print the output in the screen(like bill,accont detail) by using broland c++ programming for the project.

Top 10 Contributor
पुरूष
Posts 191
ubuntubay In reply to 02-05-2010 10:09 AM | लग गरिएको

Hi Shishir,

I'm not much familiar with Borland C++. Do you mean Borland Turbo C++ 3.0 or the newer one?

Anyways, one way of doing it is to use the print command of dos. Save the output to a text file (txt) and use the print command with the help of system() function to print the file. However, not all printers are supported and it only works with lpt printers or those that emulate an lpt driver. You can have details about the print command from print /? from the command-line or http://www.computerhope.com/printhlp.htm.

Hope this helps.

Regards
ubuntubay

Page 1 of 1 (2 items) | RSS