Printers have a language that you can control them with. Unfortunately, they don't all use the same langauge!
Unless the printer you want to control is speaking your language, you won't be able to make it do what you want.
Maybe start by reading up on PCL (Printer Control Language):
Read the Wiki article, then dive into the PDF that's listed on the above page, and see a lot more details.
Modems are about the same way. They have a language that many use, but not every modem, uses the same exact one.
In the DOS days you had full freedom as a user, to control all your peripherals, but those days are long gone. Controlling who has the authorization to mess with the peripherals is very important, these days.
So don't skip over the part about getting authorization or all the right control codes you send, will be for naught.
100% correct. Most of the time, you connect to the device and then send it text strings or codes to control the device. This is considered "high level" control. For low-level control, you can use direct hardware I/O instructions, which depend upon the device connectivity, such as RS-232 serial port, parallel port, USB, etc. These days, only device drivers need the low-level stuff, though "back in the day" we had to do the low-level bit twiddling ourselves... :-)
One common printer protocol that Adak did not mention is PostScript (created by Adobe and first adopted for printers by Apple), which in reality is its own high-level programming language. The original Sun workstations even used it as a display-rendering language (before X-Windows)!
Edited 3 Years Ago by rubberman
I am developing a simple job card creator application with VB.net 2012, using Access 2010 as database.
The code I have generated to write data from a datagridview to the database table is successfully saving the data, but with an error "Parameter @name has no default value". The ...
write a C++ program which take inputs from the user/keyboard and calculate his ZAKAT.
get the input from user may include
-Amount invested in business
-Amount given to other business partners as loan
-Amount payable to others
I made a prime number finder, it finds the nearest prime that is above and below any integer (Does not work that well with giant numbers.)
Made this in cpp.sh
Why would I need the x=y+1-1;?
x=y; just doesnt seem to work
Why is this?
And I know my coding ...