Pelles C forum

C language => Pocket PC and Smartphone questions => Topic started by: gromit on May 20, 2012, 09:53:22 pm

Title: Printer driver
Post by: gromit on May 20, 2012, 09:53:22 pm
Hi all
Many moons ago when i was programming in psion basic
 I could send printing commands to a cannon poprtable printer using LPRINT and escape sequences etc

I would now2 like to print direct from a PDA
The available drivers are not up to much and i would like to know if anyone could advise me on how to go about writing my own code to Talk to a printer

BTIA gromit
Title: Re: Printer driver
Post by: CommonTater on May 21, 2012, 12:05:49 am
What operating system is the PDA running?

It is likely there are operating system calls you can use to render text to a printer...
It is also very likely someone has written a downloadable library to make it easier.

I'm thinking Google is your best friend on this one...

Title: Re: Printer driver
Post by: gromit on May 21, 2012, 10:19:31 pm
Thanks for your reply Tater

It windows WM5 or 6.5 (if i upgraded the rom)
I program using a mixture of c and Win32 API ( i know they are one and the same thing in a way)
I know under windows you first have to have a default printer etc
but PDAs (psion being the exeption) dont generally have this facility built in
I would like to do something myself as there are not many third party progs about.

BTW Google is my best friend but i was looking for some more "Expert" input :) :) :)
BTIA
Title: Re: Printer driver
Post by: zeeshan123 on December 29, 2014, 12:57:27 pm
Thanks timovjl 
:) :) :) :) :)
Whilst i am none the wiser as to why the bug occurred your code whacked it full on.
Now works perfectly.
Obviously a lot to be said for a better understanding of formatting text.

I Can only assume my wscpy ing of the various strings had some bearing on it

Once again big thanks have been struggling on that one for a couple of nights now :)
Title: Re: Printer driver
Post by: frankie on December 29, 2014, 11:44:20 pm
Thanks timovjl 
No posts from Timo here on this 2 years old thread    >:(
Are you just kidding?
Title: Re: Printer driver
Post by: Bitbeisser on December 30, 2014, 02:08:00 am
Thanks timovjl 
No posts from Timo here on this 2 years old thread    >:(
Are you just kidding?
Spammer probing post...

Ralf