how can i enable printer to print the output in the screen(like bill,accont detail) by using broland c++ programming for the project.
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.
Regardsubuntubay
MSDNNepal.net