• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2109
  • Last Modified:

Create Printer Driver

Hi Expets,

Where can I find samples how to create my own priter driver?
0
S_Warrior
Asked:
S_Warrior
1 Solution
 
D-MasterCommented:
mmmmmmmmmmm......

DELPHI DOES NOT MAKE DRIVERS OF ANY KIND......

you can't make a printer driver using Delphi.....sorry
0
 
D-MasterCommented:
You can use Visual C++ and Microsoft DDK
http://www.microsoft.com/whdc/devtools/ddk/default.mspx
0
 
S_WarriorAuthor Commented:
How can I setup a new printer that will pass all the canvas to my program.

Like winfax do.
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
sun4sundayCommented:
Printer Driver creation ou are looking for, then u can use VC++ or c++
http://www.microsoft.com/whdc/driver/default.mspx  //Driver fundamentals
http://www.microsoft.com/whdc/driver/kernel/KMcode.mspx
http://www.microsoft.com/whdc/default.mspx
Fromteh above you will get a good start.

OR
If you are looking for a code that will  give avaliable printer is given below.


To get printers into combo box
ComboBox1.Items.Assign(Printer.Printers);

To Print the selected printer
QuickRep1.PrinterSettings.PrinterIndex:=ComboBox1.ItemIndex;

Don't forget to add in the uses clasue   Printers

sun4sunday
0
 
Kyle FosterCEOCommented:
Where does 'DELPHI DOES NOT MAKE DRIVERS OF ANY KIND......' come from?  I've written drivers in Delphi.  Too bad I didn't know it was impossible.

Unfortunately, it is not easy and I can't find the code.  I will look around for the example.  Basically, you have to emulate C's argument passing CDECL and export the same functions that a C example would have.  So find a C example and convert the header to Delphi and then implement the functions.
0
 
Russell LibbySoftware Engineer, Advisory Commented:

Yep, big difference betweeen a (unimode) printer driver which delphi can make, and say... a device driver which Delphi can't make

Fully working driver and source located here

- http://mabuse.de/vprinter.mhtml

Regards,
Russell
0
 
cwwkieCommented:
> Fully working driver and source located here

> - http://mabuse.de/vprinter.mhtml

But the *driver* is written in c, only the helper programs are delphi.
But will recommend kfoster11's comment because I asume it is possible, but it is not easy!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now