| | |
printing from pascal
![]() |
There are built in print functions, but I've not used Pascal in ages (except Delphi now and again and there you have Windows handle the printing).
If I recall correctly you have to open the printer like a file and write to it.
This is easiest for old line printers (matrix printers) as there you can just write text lines and they'll appear on paper.
For PCL and PS printers you will need some kind of library to translate your commands to the printer language.
Turbo Pascal used to come with a demo for the printer unit (which you'll need to include).
http://bdn.borland.com/article/0,1410,20803,00.html will allow you to download Turbo Pascal 5.5 free of charge (may need free registration). Not sure if the printer unit works from Windows in command prompt though.
In Object Pascal (Delphi, and I think TP for Windows as well) you would use a TPrinter object instead.
If I recall correctly you have to open the printer like a file and write to it.
This is easiest for old line printers (matrix printers) as there you can just write text lines and they'll appear on paper.
For PCL and PS printers you will need some kind of library to translate your commands to the printer language.
Turbo Pascal used to come with a demo for the printer unit (which you'll need to include).
http://bdn.borland.com/article/0,1410,20803,00.html will allow you to download Turbo Pascal 5.5 free of charge (may need free registration). Not sure if the printer unit works from Windows in command prompt though.
In Object Pascal (Delphi, and I think TP for Windows as well) you would use a TPrinter object instead.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
![]() |
Similar Threads
- Pascal's Triangle in C (C)
- Need Help With Printing Pascal's Triangle In C (C)
- Windows 2000 Adv Server and "Printing Subsystem" (Windows NT / 2000 / XP)
- Printing pictures (Windows NT / 2000 / XP)
- Linux printing questions (*nix Hardware Configuration)
Other Threads in the Pascal and Delphi Forum
- Previous Thread: error 88:'(' expected when trying to display an array any help
- Next Thread: Help Me
| Thread Tools | Search this Thread |






