RE: Printer Driver Custom Size for Pages

The answer is DEVMODE.

The supported way to communicate between the UI dll and the rendering
dll is through the DEVMODE. Unidrv provides a method of extending the
devmode. You should add an extension to the devmode and put your extra
data there.

I think most of the examples do this; watermarkuni certainly does. See
\WINDDK\3790.1830\src\print\oemdll\watermarkuni\common\devmode.h.

Or, if your paper sizes will all fit in a short (width & length), just
use DMPAPER_USER[+n] in the dmPaperSize field, and set dmPaperLength and
dmPaperWidth.

How your renderer communicates this information to the printer is up to
you, and is most likely propietary.

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Sunday, January 22, 2006 10:42 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] ### Printer Driver Custom Size for Pages

Hi Folks,

We have written a UI plug-in to go along with our printer driver (unidrv
based).

The UI allows two edit-boxes to enter a customizable length and width.

We can get these values from the UI and store them in the
registry/local-variables.

What is the best place to transfer these into the renderer (i.e. unidrv
section of codes) to make the physical paper size match what the user
has entered into the edit boxes?

Thanks so much for the insight.

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: xxxxx@xerox.com To
unsubscribe send a blank email to xxxxx@lists.osr.com

Hi Scott,

Thanks for the reply - figured it was DEVMODE since it carries the
information for the size fields. We are just trying to find out the
right point where to pass it between the UI and the renderer - any
thoughts?

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: Tuesday, January 24, 2006 11:34 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Printer Driver Custom Size for Pages

The answer is DEVMODE.

The supported way to communicate between the UI dll and the rendering
dll is through the DEVMODE. Unidrv provides a method of extending the
devmode. You should add an extension to the devmode and put your extra
data there.

I think most of the examples do this; watermarkuni certainly does. See
\WINDDK\3790.1830\src\print\oemdll\watermarkuni\common\devmode.h.

Or, if your paper sizes will all fit in a short (width & length), just
use DMPAPER_USER[+n] in the dmPaperSize field, and set dmPaperLength and
dmPaperWidth.

How your renderer communicates this information to the printer is up to
you, and is most likely propietary.

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Sunday, January 22, 2006 10:42 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] ### Printer Driver Custom Size for Pages

Hi Folks,

We have written a UI plug-in to go along with our printer driver (unidrv
based).

The UI allows two edit-boxes to enter a customizable length and width.

We can get these values from the UI and store them in the
registry/local-variables.

What is the best place to transfer these into the renderer (i.e. unidrv
section of codes) to make the physical paper size match what the user
has entered into the edit boxes?

Thanks so much for the insight.

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: xxxxx@xerox.com 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

Didn’t I answer the same question when you asked about number of copies?

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Tuesday, January 24, 2006 11:59 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Printer Driver Custom Size for Pages

Hi Scott,

Thanks for the reply - figured it was DEVMODE since it carries the
information for the size fields. We are just trying to find out the
right point where to pass it between the UI and the renderer - any
thoughts?

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: Tuesday, January 24, 2006 11:34 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Printer Driver Custom Size for Pages

The answer is DEVMODE.

The supported way to communicate between the UI dll and the rendering
dll is through the DEVMODE. Unidrv provides a method of extending the
devmode. You should add an extension to the devmode and put your extra
data there.

I think most of the examples do this; watermarkuni certainly does. See
\WINDDK\3790.1830\src\print\oemdll\watermarkuni\common\devmode.h.

Or, if your paper sizes will all fit in a short (width & length), just
use DMPAPER_USER[+n] in the dmPaperSize field, and set dmPaperLength and
dmPaperWidth.

How your renderer communicates this information to the printer is up to
you, and is most likely propietary.

ScottR

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Steve Spano
Sent: Sunday, January 22, 2006 10:42 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] ### Printer Driver Custom Size for Pages

Hi Folks,

We have written a UI plug-in to go along with our printer driver (unidrv
based).

The UI allows two edit-boxes to enter a customizable length and width.

We can get these values from the UI and store them in the
registry/local-variables.

What is the best place to transfer these into the renderer (i.e. unidrv
section of codes) to make the physical paper size match what the user
has entered into the edit boxes?

Thanks so much for the insight.

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: xxxxx@xerox.com 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: xxxxx@xerox.com To
unsubscribe send a blank email to xxxxx@lists.osr.com