Hi There Ashwin,
Thanks for the tips. I will do some more testing tomorrow and may ping
you again.
Steve Spano
President, Finger Lakes Engineering
(V) 607-277-1614 x223
(F) 800-835-7164
(C) 607-342-1150
xxxxx@flconsult.com
www.fl-eng.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ashwin
Needamangala
Sent: Thursday, January 05, 2006 8:03 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox
How are you installing the oemui driver after building? You should use
the oemdll.inf that is also part of the DDK. This should ensure that the
ini file is copied over as expected. I just tested on my system and it
seems to be fine.
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 4:45 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox
Ashwin,
I saw the dialog with the calibrate button by opening the resource file.
I suspect something isn’t right in our INI file. Perhaps the UI dll
isn’t getting copied or a name/etc is not right.
Too bad there are not more reference books on drivers, lots on
programming. Wonder why none on drivers.
Thanks
Steve Spano
President, Finger Lakes Engineering
(V) 607-277-1614 x223
(F) 800-835-7164
(C) 607-342-1150
xxxxx@flconsult.com
www.fl-eng.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ashwin
Needamangala
Sent: Thursday, January 05, 2006 5:58 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox
The oemui sample adds a custom property sheet that has a Calibrate
button on it. You can view this by going to Printer Properties. The best
reference for developing print drivers (apart from newsgroups such as
this one) is the DDK…both samples and docs.
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 1:23 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox
Hi Ashwin,
We compiled in the oemUI to add a property sheet, but it didn’t appear
to add anything. Anyplace you know of that has a little tutorial on how
to do this?
What are some good text references for developing drivers such as
printers, usb, firewire, etc? Do these books exist?
Steve Spano
President, Finger Lakes Engineering
(V) 607-277-1614 x223
(F) 800-835-7164
(C) 607-342-1150
xxxxx@flconsult.com
www.fl-eng.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Ashwin
Needamangala
Sent: Thursday, January 05, 2006 1:33 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox
You *can* use GPDs to implement user-defined paper sizes. But the user
will have to create a form whose dimensions fall within the supported
range for the custom paper size. If you wanted to make this process
easier for the user, you can expose this from within your UI plugin as
an additional property sheet. The oemui sample illustrates how to add a
property sheet.
But the approach you outlined below doesn’t sound feasible…hooking a
textbox from the GPD. Also, the plotter driver doesn’t sound like the
right sample for you since it is a monolithic driver. It doesn’t sound
like a monolithic driver is the right approach for your needs.
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:15 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox
Well, I guess your question is really, “Can I use GPD files to implement
user-defined paper sizes?”
I can’t answer it, though. I don’t have much experience with
minidrivers.
Sorry,
ScottR
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 10:59 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox
Hi ScottR,
Actually, I was looking at the msplot example since that seems closer.
It generates the DLL for the printer driver and the printer UI
interface. So this looks like what we need.
I want to have two edit boxes where the user can manually enter an X and
Y dimension for the paper so we can have any paper size they want.
Ideally, we could do this by calling an edit box within the GPD and get
around the whole issue of the printer UI, but I don’t think we can
instantiate an edit box for text entry within the GPD.
Is that true/false? Has anyone added a text edit box within a GPD and
hooked in a callback into the driver to get the text? That would be very
slick.
Thanks
Steve Spano
President, Finger Lakes Engineering
(V) 607-277-1614 x223
(F) 800-835-7164
(C) 607-342-1150
xxxxx@flconsult.com
www.fl-eng.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:51 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox
Why do you want to put the cpusi sample into your driver?
ScottR
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 10:29 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox
Hi Scott,
Thanks for the response - that is what I thought. Needs to be done at
the application layer.
Does anyone have a good guide for intregrating the cpsuisam example into
a printer driver? We are having problems figuring out what code needs to
pulled out and what scripts need to be changed so we can compile the
custom UI into our driver base.
thanks
Steve Spano
President, Finger Lakes Engineering
(V) 607-277-1614 x223
(F) 800-835-7164
(C) 607-342-1150
xxxxx@flconsult.com
www.fl-eng.com
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Robins, Scott
Sent: Thursday, January 05, 2006 10:16 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Print To File Checkbox
I don’t know how to do this. And I doubt that you can.
Even if you do, it does not prevent the user from creating a port
pointing at a file and using that. ie, you can create a local port with
the name “c:\file.prn” and the application’s “print to file” checkbox
will NOT be checked, so you won’t be preventing the user from printing
to a file.
ScottR
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Thursday, January 05, 2006 9:12 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] ### Print To File Checkbox
Hi Folks,
Does anyone know how to get a callback/notification/etc in a printer
driver to see if the user has checked the “Print To File” box commonly
available in the application?
If not, is there a nice way to use the PrintDlgEx structure (from within
a printer driver) to hide that checkbox from the user?
Thanks
Steve Spano
President, Finger Lakes Engineering
(V) 607-277-1614 x223
(F) 800-835-7164
(C) 607-342-1150
xxxxx@flconsult.com
www.fl-eng.com
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
************************************************************************
************
This footnote confirms that this email message has been scanned by
PineApp Mail-SeCure for the presence of malicious code, vandals &
computer viruses.
************************************************************************
************
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: unknown lmsubst tag argument:
‘’
To unsubscribe send a blank email to xxxxx@lists.osr.com