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 / Printing in DBPRO

Author
Message
Panda lover
18
Years of Service
User Offline
Joined: 22nd Feb 2006
Location:
Posted: 9th May 2006 21:22
is there any dll's or anyway of sending things from darkbasic pro to a printer to print things off?
3Nigma
18
Years of Service
User Offline
Joined: 23rd Apr 2006
Location: RoManiA
Posted: 9th May 2006 21:26
I think there was another topic about this...the answer was no as i remembered...but it is possible...keep learning about how to make a dll and maybe you'll become your own answer !

Cheers

Knowledge belongs to the world...but not this time
Panda lover
18
Years of Service
User Offline
Joined: 22nd Feb 2006
Location:
Posted: 9th May 2006 22:35
yes i know thre another post because i'm th author of both i just didnt have much info on th other one so i thought i would try in here
D Ogre
21
Years of Service
User Offline
Joined: 19th Nov 2003
Location:
Posted: 10th May 2006 01:20
Yes, there is a way to use the printer with DBpro. You can find what your looking for in the DLL Talk forum. There are several posts concerning this very topic. You can download a complete set of plugins that handle this as well as some other useful things not found in the normal DBPro command set. You will need to have some sort of C++ compiler to build most of them because they are provided as source code. The author no longer supports these plugins, and most of them don't give you any usage examples. If you are familiar with C++, you can figure out what the commands are from the string tables provided for the build.

Lots of luck!
D Ogre
MartinS
18
Years of Service
User Offline
Joined: 15th Dec 2005
Location: Rochester, NY
Posted: 10th May 2006 14:55
Well, if you want to print an image you can use this code:
Just replace "test.bmp" with the image, and change "C:\" to the directory the image you want printed is in.

Hope that helps,
Martin

MartinS
18
Years of Service
User Offline
Joined: 15th Dec 2005
Location: Rochester, NY
Posted: 10th May 2006 15:01
To print a text file, use this code:
Use it like the previous one.

Martin

Panda lover
18
Years of Service
User Offline
Joined: 22nd Feb 2006
Location:
Posted: 10th May 2006 23:09
i might try that and see if it works
MartinS
18
Years of Service
User Offline
Joined: 15th Dec 2005
Location: Rochester, NY
Posted: 11th May 2006 08:52
As long as your printer "knows" Paint and Notepad, it should work.

Panda lover
18
Years of Service
User Offline
Joined: 22nd Feb 2006
Location:
Posted: 14th May 2006 15:19
why the printer doesnt need to know them programs because the printer works of the windos spooler system all windows does it puts the information to the printer divers and the printer drivers should then put it into a format that the printer understands and will pritn that information.
NeX the Fairly Fast Ferret
19
Years of Service
User Offline
Joined: 10th Apr 2005
Location: The Fifth Plane of Oblivion
Posted: 14th May 2006 15:38
LPRINT was a great command in QBasic.

<OMG></OMG>
NeX, you cant be serious - CattleRustler.
Panda lover
18
Years of Service
User Offline
Joined: 22nd Feb 2006
Location:
Posted: 14th May 2006 17:37
lol i think they should program it in another upgrade because it could prove handy for games if you want to rint out a few details and that or for applications
Panda lover
18
Years of Service
User Offline
Joined: 22nd Feb 2006
Location:
Posted: 15th May 2006 22:21


is handy for wot i want to use of putting files into excel but is there a command to import into excel?

Login to post a reply

Server time is: 2024-11-27 19:37:15
Your offset time is: 2024-11-27 19:37:15