473,806 Members | 2,795 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.d ll" 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 7501
"Support" <Re************ ****@mail.oci.s tate.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.d ll" 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.d ll" 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*@REMOVEcsh4 u.nl> wrote in message
news:-v************** ******@zeelandn et.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.d ll"
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
1717
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 is to be sent to print command of the document I want to print. In this case, it is the html file which I open in the browser control which I want to print using these settings. How do I send this printer driver context generated by this printer...
4
2013
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 Only driver, but not from VB. The printer specific driver is available in the Win2k driver list, but when using that driver, the printer prints a few characters of jibberish then feeds to a new page and prints a new line of jibberish. It does this...
6
2569
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 printing would have to bypass the printer driver.. i have read several article on sending file directly to a printer, but i could not understand how could i get the printername from the ports(especially when there is no driver install)? Can anyone...
1
6128
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 PRINTER_DEFAULTS Dim pinfo2 As PRINTER_INFO_2 Dim pinfo8 As PRINTER_INFO_8 Dim pinfo9 As PRINTER_INFO_9 Dim dm As DEVMODEW Dim yDevModeData() As Byte
3
2077
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 that can be installed as a printer on the local computer. When sending the print command so that the current document, whatever it is is transmitted to the program, I need to popup a box to get the desination info (name phone number etc..) ,when...
0
1782
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 driver should be able to pass jobs to the software installed in the workstation that is connected to the printer. - the printer driver should be robust. It should be good to use on all OS systems. - the printer driver should take care of the ease of...
0
997
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 document converter that is installed as a printer driver and convert a PDF file to a tif file. The program uses the maketif sub below. This apparently uses Acrobat reader to print to the default printer that is a printer driver that converts the PDF...
3
4025
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 PC laptop running Windows 2000, and an HP Laserjet 4500, with a Linksys Wireless-G router. All are set up with network cords running to the router. The router is working since I can access the internet on both computers. I followed the...
2
3417
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 problem is when I restart the computer the printer won't work. Right click properties in my printer driver will show me the message below The prp-080 printer driver is not installed on this computer. Some properties will not be accessible unless...
0
9719
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9599
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10371
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10111
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9193
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6877
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4330
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3853
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3010
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.