Restored from previous forum. Originally posted by Andre.
Hope anyone can help with this problem (originally posted by Ralf):
Printing simple text on different printers on different systems
via
OpenFile(1,"LPT1")
works on:
EPSON printer - WIN 98 SE,
HP LASERJET printer - WINDOWS NT 4.0,
works NOT on:
LEXMARK Z11 - WIN 98
Does anyone have an idea, where the problem is?
Windows API, type of printer, the windows version or ...?
Printing on different printers (via API)
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Danilo.
This Method works for "real" printers only...
...printers you can use with every OS,
on different Computer platforms
(something like "EPSON" compatible)
Many new printers are ****ty "Windows only"
printers.
This printers can only be accessed trough
the special printer driver that comes with
the printer.
You cant use this printers with DOS etc...
I will never buy such a piece of ****,
and i´m telling you: Dont use this printers.
If the printer library is available, this
****ty printers should work too -
but better dont support such crap.
cya,
...Danilo
(registered PureBasic user)
This Method works for "real" printers only...
...printers you can use with every OS,
on different Computer platforms
(something like "EPSON" compatible)
Many new printers are ****ty "Windows only"
printers.
This printers can only be accessed trough
the special printer driver that comes with
the printer.
You cant use this printers with DOS etc...
I will never buy such a piece of ****,
and i´m telling you: Dont use this printers.
If the printer library is available, this
****ty printers should work too -
but better dont support such crap.

cya,
...Danilo
(registered PureBasic user)
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Shawn.
Hi.
You should be able to print using the Windows graphics device interface (GDI), however, it seems quite complex. I read somewhere that Fred is planning some printer routines for PB. This would be useful.
In the meantime, you could save your output to a file, then use a Windows program, like Notepad, to print the file for you.
The following code uses notepad's /p parameter to print the file and close.
RunProgram("notepad.exe", "/p C:\temp\testprint.txt", 2)
Shawn
Hi.
You should be able to print using the Windows graphics device interface (GDI), however, it seems quite complex. I read somewhere that Fred is planning some printer routines for PB. This would be useful.
In the meantime, you could save your output to a file, then use a Windows program, like Notepad, to print the file for you.
The following code uses notepad's /p parameter to print the file and close.
RunProgram("notepad.exe", "/p C:\temp\testprint.txt", 2)
Shawn
-
- PureBasic Guru
- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm