Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / Sending stuff to a printer

Author
Message
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 28th Nov 2002 13:36
Hi.

How do I send text or pictures to the printer from within the code I may be writeing.

1. Can it be done
2. Where do I look

chrees.
TheCyborg
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Denmark
Posted: 28th Nov 2002 15:18
I do not think it's possible with the standard DB set of commands, but maybe there is a function call in one of the windows system dlls. Not sure though

TheCyborg Development.
http://TheCyborg.Amok.dk
The Ultimate Source To DarkBASIC Programming.
Hubdule
22
Years of Service
User Offline
Joined: 3rd Sep 2002
Location: Gundelsheim
Posted: 28th Nov 2002 16:17
use this to print text



MrTAToad
22
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 28th Nov 2002 17:10
You should be able to use networked LPT ports if you do :

NET USE lpt1: \\<computer name>\><printer name>

You should also be able to open a file for writing calling in "LPT1","LPT2" etc...

As for pictures, you would have to use the Printer API in windows...

Good news everybody! I really am THAT good...
HowDo
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: United Kingdom
Posted: 29th Nov 2002 13:47
Thanks to TheCyborg ,Hubdule ,MrTAToad

the follow have give me way to try hopefull will find one that works and may put it the forum, again thanks.

Cheers.

Login to post a reply

Server time is: 2024-11-23 17:34:04
Your offset time is: 2024-11-23 17:34:04