Thanks, for the latest post to my Paper Size Issue. But I don’t get the
current selected Paper Size in the case of Corel Draw.
Beside Corel I’ve the same problem with other applications like MS
Word…
With Word I receive the current selected Paper Size only if it isn’t a
User defined size. If the current Paper Size is a User defined Size I
always receive the first Form from my Driver.
Thanks in advance
You need to deduct from dmPaperLength and dmPaperWidth. Corel
application, I remember it to be corel presentation
always sends papersize as custom papersize by specifying the dimensions
in dmPaperLength and dmPaperWidth of DEVMODE even in Case of Built In
forms like letter,A4,etc.
Also when you said the first papersize, I feel the DM_PAPERSIZE flag in
dmFields would be turned off or as the msdn quotes below dmPaperLength
documentation says:-
“For printer devices only, overrides the length of the paper specified
by the dmPaperSize member, either for custom paper sizes or for devices
such as dot-matrix printers that can print on a page of arbitrary
length. These values, along with all other values in this structure that
specify a physical length, are in tenths of a millimeter.”
Hope This Helps
Vipin
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kurt
Blumenschein
Sent: Wednesday, October 20, 2004 1:09 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Printer Driver User defined Paper Size
Thanks, for the latest post to my Paper Size Issue. But I don’t get the
current selected Paper Size in the case of Corel Draw. Beside Corel I’ve
the same problem with other applications like MS Word… With Word I
receive the current selected Paper Size only if it isn’t a User defined
size. If the current Paper Size is a User defined Size I always receive
the first Form from my Driver.
Thanks in advance
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@wipro.com To
unsubscribe send a blank email to xxxxx@lists.osr.com
Hi Vipin,
Even if I select a Build in form in CorelDraw I don’t receive the
current Paper Size.
I tried it with my on PrinterDriver (build on MSPLOT) without success, I
tried it with the orignal MSPLOT Example from DKK no success.
The only thing I changed from the original Example was to write a
Logfile at the beginning of where I looked at the
Parameter.
Yours Kurt
>>> xxxxx@wipro.com 10/20/04 10:00 AM >>>
You need to deduct from dmPaperLength and dmPaperWidth. Corel
application, I remember it to be corel presentation
always sends papersize as custom papersize by specifying the dimensions
in dmPaperLength and dmPaperWidth of DEVMODE even in Case of Built In
forms like letter,A4,etc.
Also when you said the first papersize, I feel the DM_PAPERSIZE flag in
dmFields would be turned off or as the msdn quotes below dmPaperLength
documentation says:-
“For printer devices only, overrides the length of the paper specified
by the dmPaperSize member, either for custom paper sizes or for devices
such as dot-matrix printers that can print on a page of arbitrary
length. These values, along with all other values in this structure that
specify a physical length, are in tenths of a millimeter.”
Hope This Helps
Vipin
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kurt
Blumenschein
Sent: Wednesday, October 20, 2004 1:09 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Printer Driver User defined Paper Size
Thanks, for the latest post to my Paper Size Issue. But I don’t get the
current selected Paper Size in the case of Corel Draw. Beside Corel I’ve
the same problem with other applications like MS Word… With Word I
receive the current selected Paper Size only if it isn’t a User defined
size. If the current Paper Size is a User defined Size I always receive
the first Form from my Driver.
Thanks in advance
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@wipro.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
Kurt,
Everything works fine. Just checked with coreldraw. Papesizes come
properly.
Thing is DrvEnablePdev(…) would be called multiple times and I feel
you are seeing the hit when the DEVMODE passed is the default one. Apps
use it to do some HDC caching for some combinations of DEVMODE passed in
the last parameter of CreateDC(…). You have to maintain a list OR you
can store the information as part of the PDEV and then pick it up in the
DrvStartDoc via the SURFOBJ that arrives there and come to know what
the document size used for printing the document. DO you do this way?, I
don’t think so.
Hope this helps
Vipin
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kurt
Blumenschein
Sent: Thursday, October 21, 2004 12:26 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Printer Driver User defined Paper Size
Hi Vipin,
Even if I select a Build in form in CorelDraw I don’t receive the
current Paper Size. I tried it with my on PrinterDriver (build on
MSPLOT) without success, I tried it with the orignal MSPLOT Example from
DKK no success. The only thing I changed from the original Example was
to write a Logfile at the beginning of where I looked at
the Parameter.
Yours Kurt
>>> xxxxx@wipro.com 10/20/04 10:00 AM >>>
You need to deduct from dmPaperLength and dmPaperWidth. Corel
application, I remember it to be corel presentation always sends
papersize as custom papersize by specifying the dimensions in
dmPaperLength and dmPaperWidth of DEVMODE even in Case of Built In forms
like letter,A4,etc.
Also when you said the first papersize, I feel the DM_PAPERSIZE flag in
dmFields would be turned off or as the msdn quotes below dmPaperLength
documentation says:- “For printer devices only, overrides the length of
the paper specified by the dmPaperSize member, either for custom paper
sizes or for devices such as dot-matrix printers that can print on a
page of arbitrary length. These values, along with all other values in
this structure that specify a physical length, are in tenths of a
millimeter.”
Hope This Helps
Vipin
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kurt
Blumenschein
Sent: Wednesday, October 20, 2004 1:09 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Printer Driver User defined Paper Size
Thanks, for the latest post to my Paper Size Issue. But I don’t get the
current selected Paper Size in the case of Corel Draw. Beside Corel I’ve
the same problem with other applications like MS Word… With Word I
receive the current selected Paper Size only if it isn’t a User defined
size. If the current Paper Size is a User defined Size I always receive
the first Form from my Driver.
Thanks in advance
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@wipro.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@wipro.com To
unsubscribe send a blank email to xxxxx@lists.osr.com
Again, my driver is build on MsPlot Example, and the Issue want to
address is to receive the current selected Paper Size from the
Application eg CorelDraw MS Word, not the current PaperSize from the
Printer.
The only thing I receive is the current selected Paper Size which was
configured through .
For testing I used CorelDraw11 and 12.
I know that there are several calls to DrvEnablePDEV but even if I write
them all to a Logfile I can’t find a call with the current PaperSize (or
dmPaperWidth, dm PaperHeight) from the calling Application.
How do you exactly reproduce this?
Yours Kurt
>>> xxxxx@wipro.com 10/21/04 11:56 AM >>>
Kurt,
Everything works fine. Just checked with coreldraw. Papesizes come
properly.
Thing is DrvEnablePdev(…) would be called multiple times and I feel
you are seeing the hit when the DEVMODE passed is the default one. Apps
use it to do some HDC caching for some combinations of DEVMODE passed in
the last parameter of CreateDC(…). You have to maintain a list OR you
can store the information as part of the PDEV and then pick it up in the
DrvStartDoc via the SURFOBJ that arrives there and come to know what
the document size used for printing the document. DO you do this way?, I
don’t think so.
Hope this helps
Vipin
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kurt
Blumenschein
Sent: Thursday, October 21, 2004 12:26 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] Printer Driver User defined Paper Size
Hi Vipin,
Even if I select a Build in form in CorelDraw I don’t receive the
current Paper Size. I tried it with my on PrinterDriver (build on
MSPLOT) without success, I tried it with the orignal MSPLOT Example from
DKK no success. The only thing I changed from the original Example was
to write a Logfile at the beginning of where I looked at
the Parameter.
Yours Kurt
>>> xxxxx@wipro.com 10/20/04 10:00 AM >>>
You need to deduct from dmPaperLength and dmPaperWidth. Corel
application, I remember it to be corel presentation always sends
papersize as custom papersize by specifying the dimensions in
dmPaperLength and dmPaperWidth of DEVMODE even in Case of Built In forms
like letter,A4,etc.
Also when you said the first papersize, I feel the DM_PAPERSIZE flag in
dmFields would be turned off or as the msdn quotes below dmPaperLength
documentation says:- “For printer devices only, overrides the length of
the paper specified by the dmPaperSize member, either for custom paper
sizes or for devices such as dot-matrix printers that can print on a
page of arbitrary length. These values, along with all other values in
this structure that specify a physical length, are in tenths of a
millimeter.”
Hope This Helps
Vipin
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Kurt
Blumenschein
Sent: Wednesday, October 20, 2004 1:09 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Printer Driver User defined Paper Size
Thanks, for the latest post to my Paper Size Issue. But I don’t get the
current selected Paper Size in the case of Corel Draw. Beside Corel I’ve
the same problem with other applications like MS Word… With Word I
receive the current selected Paper Size only if it isn’t a User defined
size. If the current Paper Size is a User defined Size I always receive
the first Form from my Driver.
Thanks in advance
—
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
You are currently subscribed to ntdev as: xxxxx@wipro.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@wipro.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