printing from pascal

Reply

Join Date: Apr 2005
Posts: 9
Reputation: mpx10 is an unknown quantity at this point 
Solved Threads: 0
mpx10 mpx10 is offline Offline
Newbie Poster

printing from pascal

 
0
  #1
Apr 11th, 2005
hello. i have made a database to calculate wages and other figures and this database includes an invoice page. i was wondering how to print out the invoice directly from pascal. im not too sure if there is a built in function that i need to use. any help is much appriciated. thank you
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: printing from pascal

 
0
  #2
Apr 12th, 2005
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.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Pascal and Delphi Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC