The very basics looks like this and prints to the default printer:
@Rik: You obviously didn't try my code (again).
Quote from: Thaddy on December 07, 2015, 06:47:37 pm@Rik: You obviously didn't try my code (again). How do you mean "again" ?? I always try code. So I don't see what you mean with again. I think you got me confused with someone else.I did try your code and it says it can't find unit printers.The only unit printers I can find is in Lazarus LCL. I can't find one in FPC. Can you direct me where I can find the unit printers in FPC? There is a unit printer (without the s) but that only creates a PRN-file assignment (which would normally be LPT1 as I remember).Edit: So YOU didn't try your code in FP.EXE
Anyway. It works. so submitter's question is answered.
Having used Turbo Pascal for many years I am quite happy using the textmode version of Free Pascal - but, out of curiosity, is it possible to access my Windows printer by using the Printers unit?
Doesn't FP IDE use printer unit from RTL?