Page 1 of 1

Posted: Fri Dec 28, 2001 1:23 pm
by BackupUser
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 ...?

Posted: Fri Dec 28, 2001 4:08 pm
by BackupUser
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)

Posted: Sat Dec 29, 2001 9:25 am
by BackupUser
Restored from previous forum. Originally posted by Ralf.

But what can you do if you already bought a printer like this ?

Posted: Mon Dec 31, 2001 4:29 am
by BackupUser
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

Posted: Wed Jan 02, 2002 7:45 am
by BackupUser
Restored from previous forum. Originally posted by Ralf.

Hello
In the meantime i print it in a worddocument, open it with word and
print it.