473,387 Members | 1,669 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

How to: Printer Driver

Hello:
I would like to create my own printer driver so that it is available in all
applications through the file ->Print menu of applications.
The driver will essentially take the contents of what is in the parent
application and save it so file (like a file - save as).
I will do some information processing when the printer driver is called so I
will need it to open a form (like other drivers do).
I am reading about pdd files and I see a *ResourceDLL: "lmpclres.dll" entry.

Question 1): is that the dll where my form would reside ?
Question 2): How then would you acquire, pull the data from the parent
application (could be an image or a text file) - once pulled, it would be
trivial to create a file and save the data there...
Thanks
Terry
Nov 21 '05 #1
4 7475
"Support" <Re****************@mail.oci.state.ga.us> schrieb
Hello:
I would like to create my own printer driver so that it is available
in all applications through the file ->Print menu of applications.
The driver will essentially take the contents of what is in the
parent application and save it so file (like a file - save as).
I will do some information processing when the printer driver is
called so I will need it to open a form (like other drivers do).
I am reading about pdd files and I see a *ResourceDLL:
"lmpclres.dll" entry.

Question 1): is that the dll where my form would reside ?
Question 2): How then would you acquire, pull the data from the
parent application (could be an image or a text file) - once pulled,
it would be trivial to create a file and save the data there...
Thanks
Terry

A real driver? I think you chose the wrong environment to do this. Here's a
starting point for driver development:

http://msdn.microsoft.com/library/en...fe6e40.xml.asp

Good luck! :-)

Armin

Nov 21 '05 #2
Support wrote:
Hello:
I would like to create my own printer driver so that it is available in all
applications through the file ->Print menu of applications.
The driver will essentially take the contents of what is in the parent
application and save it so file (like a file - save as).
I will do some information processing when the printer driver is called so I
will need it to open a form (like other drivers do).
I am reading about pdd files and I see a *ResourceDLL: "lmpclres.dll" entry.

Question 1): is that the dll where my form would reside ?
Question 2): How then would you acquire, pull the data from the parent
application (could be an image or a text file) - once pulled, it would be
trivial to create a file and save the data there...
Thanks
Terry


A printer driver doesn't pull anything from the application. It just
gets handed the info it needs to print. And then specifically what to
print, where on the page in what font and colour.

Did you expect to pull data from an application like MS Access and
expect to pull records from the opened database and write the contents
to a database?

--
Rinze van Huizen
C-Services Holland b.v.
Nov 21 '05 #3
Thanks for your information ....
The big picture is that I am designing a document management application...
so I am looking for a ubiquitous interface.
The Adobe - printer interface model seemed very powerfull.
So we want to deploy a "virtual" printer that when clicked would:
1) save the file to a location
2) prompt the user for some information
I have no experience wrting printer drivers. Just started vb.net a couple
of years ago and am learning about printer drivers.
The fact that it get's handed the info is good - now I need to learn
1) what format is the info coming in (doc, xl, txt, tiff, etc...)
and save to file accordingly.
That's the plan
Thanks for any insight
Terry
Big picture is that i am designing a document management application - so I
am looking for
"C-Services Holland b.v." <cs*@REMOVEcsh4u.nl> wrote in message
news:-v********************@zeelandnet.nl...
Support wrote:
Hello:
I would like to create my own printer driver so that it is available in
all applications through the file ->Print menu of applications.
The driver will essentially take the contents of what is in the parent
application and save it so file (like a file - save as).
I will do some information processing when the printer driver is called
so I will need it to open a form (like other drivers do).
I am reading about pdd files and I see a *ResourceDLL: "lmpclres.dll"
entry.

Question 1): is that the dll where my form would reside ?
Question 2): How then would you acquire, pull the data from the parent
application (could be an image or a text file) - once pulled, it would be
trivial to create a file and save the data there...
Thanks
Terry


A printer driver doesn't pull anything from the application. It just gets
handed the info it needs to print. And then specifically what to print,
where on the page in what font and colour.

Did you expect to pull data from an application like MS Access and expect
to pull records from the opened database and write the contents to a
database?

--
Rinze van Huizen
C-Services Holland b.v.

Nov 21 '05 #4
Support wrote:
Thanks for your information ....
The big picture is that I am designing a document management application...
so I am looking for a ubiquitous interface.
The Adobe - printer interface model seemed very powerfull.
So we want to deploy a "virtual" printer that when clicked would:
1) save the file to a location
2) prompt the user for some information
I have no experience wrting printer drivers. Just started vb.net a couple
of years ago and am learning about printer drivers.
The fact that it get's handed the info is good - now I need to learn
1) what format is the info coming in (doc, xl, txt, tiff, etc...)
and save to file accordingly.
That's the plan
Thanks for any insight
Terry


I don't have experience with writing printer drivers myself, so that
ends it for me. But to me it sounds like you just need a PDF printer
driver. PDF995 for instance behaves like a printer, but it will ask you
where to store the file.

One of my coworkers was checking out an open source PDF printer on
sourceforge.net but I can't remember the name of it. Maybe you could
search there and modify it to suit your needs.
--
Rinze van Huizen
C-Services Holland b.v.
Nov 21 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: news.microsoft.com | last post by:
Hi Everyone, I am using the API of a particular printer driver, to pre-specify settings specific to that printer driver. After which the API has methods to create a printer driver context, which...
4
by: Charlie | last post by:
I need to print using the VB.net printing classes to a tractor feed printer. My client loaned me a Panasonic kx-p2123 to set up the job. I was able to print from Notepad using the Generic/Text...
6
by: notregister | last post by:
hi, i have been trying to send a printer-ready data to an unknown printer to print. the reason why the printer is unknown is that i do no wish installed any printer driver. so at the end my...
1
by: sathyp | last post by:
Public Function SetPrinterDefaultsW(ByVal sPrinterName As String, _ ByVal nPaperSize As Long, ByVal nOrientation As Long) As Boolean Dim Prn As Printer Dim hPrinter As Long Dim pd As...
3
by: Bob | last post by:
I need to create a program that is essentially a special fax sender using multi line Dialogic cards. I figure that the best way to do this so that it can be used from any app is to create someting...
0
by: jay | last post by:
Dear friends, I have a new task to do that I know nothing about. I am to design a printer driver (I think). The requirements of the project are: 1. design a printer driver - the printer...
0
by: Robert Dufour | last post by:
I have an application that is a IVR (intercative voice response) application that can use multiple telephone lines simultaneously using a dialogic card. One of the things I need to do is use a...
3
by: NewToNetworks | last post by:
Hi, hello, help! I am new to networking so please forgive me if this is a simple question. I have been at this for hours to no avail. I"m trying to network my Mac G5, running OSX 10.4.7 Tiger, a...
2
by: wassimdaccache | last post by:
Dear all I am using windows server 2003 sp1. I am connecting a printer called BIRCH prp080 to my pc using the serial port. the printer is working well when I install the driver but the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.