|
Post by mknarr on May 3, 2019 12:24:48 GMT -5
Another question. I have a program that makes calculation. Besides displaying it to a statictext control I also have that ability to print the results. The problem is I want to print that line and then wait for the user to input the next data, print that line and then dump after all data is calculated and printed. Now it sends the data to the printer que and waits until I dump or close the program and then prints all the calculations.
Is there a way to force the printer to print the line, then the next line and so on and then wait for a dump command?
|
|
|
Post by Chris Iverson on May 3, 2019 12:33:21 GMT -5
You mean, like, physically print one line, but hold the paper in the printer ready for the next line to be printed? And then only eject the paper once you run a dump command? Like a teletype or a typewriter?
No, there's not. With the way modern printers do image composition, I'm pretty sure that would be physically impossible for most, if not all, modern printers to do.
Inkjets couldn't do it, because the ink heads are larger than one line, and print out multiple lines at a time.
Laser printers DEFINITELY couldn't do it, the page would quite possibly lose static charge before it hit the fuser, and if it stopped in the wrong place, it would possibly catch on fire. (Clearing a page with half-melted toner out of a burning hot fuser is fun.)
Dot-matrix and line printers might be physically capable of it, but I suspect the way printer driver interfaces are standardized in modern OSes would prevent you from doing so anyway, without direct hardware access.
|
|
|
Post by mknarr on May 3, 2019 13:11:49 GMT -5
Thanks Chris. In all the time I've been on the forum I never saw a way to do that and now I know why.
|
|
|
Post by Carl Gundel on May 3, 2019 13:32:38 GMT -5
Another question. I have a program that makes calculation. Besides displaying it to a statictext control I also have that ability to print the results. The problem is I want to print that line and then wait for the user to input the next data, print that line and then dump after all data is calculated and printed. Now it sends the data to the printer que and waits until I dump or close the program and then prints all the calculations.
Is there a way to force the printer to print the line, then the next line and so on and then wait for a dump command? You would need a printer with an RS-232 serial interface, and then send your text out through the serial port.
|
|