|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
How to: Printer DriverHello:
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
Show quote
Hide quote
"Support" <RemoveThis_Supp***@mail.oci.state.ga.us> schrieb A real driver? I think you chose the wrong environment to do this. Here's a> 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 > > starting point for driver development: http://msdn.microsoft.com/library/en-us/ddkint/hh/ddkint/ddksplash_0d0ef7c0-7411-4fed-8c52-ef4690fe6e40.xml.asp Good luck! :-) Armin Support wrote:
Show quoteHide quote > Hello: A printer driver doesn't pull anything from the application. It just > 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 > > 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. 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 Show quoteHide quote "C-Services Holland b.v." <c**@REMOVEcsh4u.nl> wrote in message news:-v6dnYPYsd6MxF_fRVnyhA@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. Support wrote:
Show quoteHide quote > Thanks for your information .... I don't have experience with writing printer drivers myself, so that > 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 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. |
|||||||||||||||||||||||