LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-23-2007, 02:53 AM   #1
SPo2
Member
 
Registered: Jun 2005
Posts: 88

Rep: Reputation: 15
Need guide on developing Windows Print Driver


Hi;


i have got 2 question on Windows Driver development;


1_ i need to develop a text printer driver on Windows platforms;

i got the DDK running & played around with the samples file for TTY but the output i got comes with whitespace & the word "Untitled";

Can some experts guide me on howto or where to strip it;


2_ How to i write a JPEG graphic printer driver? Guides will be appreciated;
(I had already "googled"


thanks;
 
Old 11-23-2007, 08:44 PM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
http://www.rohitab.com/discuss/index...howtopic=24166
... also has an example using a printer.
http://www.borg.com/~jglatt/tech/winapi.htm
http://www.catch22.net/tuts/kernel1.asp

Such a basic requirement will probably be covered in a general tutorial as an example. So your search term would be "windows driver tutorial". Read them, and use what you read to narrow down further searches.

You should attempt to obtain code for a driver that already exists, and study that to get to where you want. Many insights are gained this way. There are open source drivers for many printers.

The headings are usually generated by the printer - the printer is expecting to receive something telling it the title and so on. It didn't get the proper strings so it prints "unknown". What it expects can be printer-dependent. Quite a bit can be like this - which is why you need to write a specific driver in the first place. Consult the printer's HW specs or the documentation in a published standard that the printer conforms to.


JPEG images (and other formats)
Usually you have to convert the image to something the printer can handle before you can use it. The prgram used to display the image usually does this for you so you don't notice and it looks like the image is just sent to the printer.

What the printer will handle depends on the printer. Postscript is popular. Considering the first question, you may want to convert the image to ascii art

Note: since you have not produced any code, nor stated what you are using to program in or how you are going about it, these suggestions are general pointers - where to look. When seeking free advise in an open source intensive forum, it is polite to provide more background, at least. (There is no way anyone will help you create a closed source driver for eg.)

Last edited by Simon Bridge; 11-23-2007 at 08:51 PM.
 
Old 11-24-2007, 01:06 AM   #3
SPo2
Member
 
Registered: Jun 2005
Posts: 88

Original Poster
Rep: Reputation: 15
HI Simon;

Thanks for your reply;

You're right, i was looking for general pointers.

Thanks for your links; :>
 
Old 11-24-2007, 03:07 AM   #4
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
Quote:
Originally Posted by Simon Bridge View Post
What the printer will handle depends on the printer. Postscript is popular. Considering the first question, you may want to convert the image to ascii art
Bit off-topic, but yeah, ascii art still rocks.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows keep developing boxes of foreign display material agentchange Ubuntu 2 06-02-2007 10:15 PM
Help for developing a device driver code for loopback interface in linux sandeepvl Programming 2 01-14-2007 01:46 AM
My HP 720c printer isn't print at all in linux but print in windows. nadavvin Linux - Hardware 9 11-12-2006 09:30 AM
Print-to-file print driver to print PDF Bill Fox Linux - General 3 05-02-2006 04:15 PM
Setting up a print to file print driver Bill Fox Linux - General 0 02-26-2005 01:22 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration