| | |
help needed to print from turbo pascal
![]() |
•
•
Join Date: Jan 2005
Posts: 31
Reputation:
Solved Threads: 0
•
•
•
•
Originally Posted by mpx10
im still struggling to print an invoice that i have made in pascal to a usb port printer. any help please. i have tried using various inbuilt function but have had no luck probably because im coding it wrong. thanks in advance
Pascal and Delphi Syntax (Toggle Plain Text)
program ptest; {$APPTYPE CONSOLE} uses SysUtils, Printers; begin Printer.BeginDoc; Printer.Canvas.TextOut(200,200,'Hello, world!'); printer.EndDoc; end.
I don't have/use Turbo Pascal so can't say if it works there as well...
•
•
Join Date: Jan 2005
Posts: 31
Reputation:
Solved Threads: 0
About the only thing I could suggest would be to write the information to a file the use the Exec function (in DOS unit -- at least it is in Free Pascal) to launch NotePad or WordPad and print from there.
If you're running Windows, you could also move up to Delphi. I've also had pretty good luck with Lazarus (although I haven't used it much). It's an open source IDE for Free Pascal similar to Delphi.
If you're running Windows, you could also move up to Delphi. I've also had pretty good luck with Lazarus (although I haven't used it much). It's an open source IDE for Free Pascal similar to Delphi.
![]() |
Similar Threads
- Turbo pascal Homework.. (Pascal and Delphi)
- screen dumps or print screens in pascal? (Pascal and Delphi)
- calnder programming in turbo pascal With Text & background !! (Pascal and Delphi)
- printing from pascal (Pascal and Delphi)
- Turbo pascal homework (Pascal and Delphi)
Other Threads in the Pascal and Delphi Forum
- Previous Thread: Help Me
- Next Thread: Returning from a sleep screen using Delphi
| Thread Tools | Search this Thread |





