Groups | Blog | Home
all groups > vb.net controls > june 2005 >

vb.net controls : How to: Printer Driver


Support
6/28/2005 2:40:11 PM
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

Armin Zingler
6/28/2005 9:36:03 PM
"Support" <RemoveThis_Support@mail.oci.state.ga.us> schrieb
[quoted text, click to view]


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-us/ddkint/hh/ddkint/ddksplash_0d0ef7c0-7411-4fed-8c52-ef4690fe6e40.xml.asp

Good luck! :-)

Armin
C-Services Holland b.v.
6/29/2005 10:19:23 AM
[quoted text, click to view]

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.
6/30/2005 12:00:00 AM
[quoted text, click to view]

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
Support
6/30/2005 10:21:54 AM
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
[quoted text, click to view]

AddThis Social Bookmark Button