EMF spooling is not working

Hi,

I tried to set the data type as “NT EMF 1.008” using the DDK
sample print processor for a printer. But the spool files are
created with “Raw” Type always…

Is there any way can I force the spooler to create EMF spool
files other than setting it in the Printer properties?

Thanks in advance,
Sridhar


Get your own “800” number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

No. Setting it in the printer properties is the only reliable way to
produce EMF. Note that in the case of printing to FILE, this will not
apply though and you will always get direct RAW printing.

  • Ashwin

This posting is provided “AS IS” with no warranties, and confers no
rights.

-----Original Message-----
From: Sridhar Krishnan [mailto:xxxxx@ureach.com]
Sent: Wednesday, August 28, 2002 5:12 PM
To: NT Developers Interest List
Subject: [ntdev] EMF spooling is not working

Hi,

I tried to set the data type as “NT EMF 1.008” using the DDK
sample print processor for a printer. But the spool files are
created with “Raw” Type always…

Is there any way can I force the spooler to create EMF spool
files other than setting it in the Printer properties?

Thanks in advance,
Sridhar


Get your own “800” number
Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag


You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to %%email.unsub%%

Hi Ashwin,

Thanks for your response. Setting EMF data type in printer
properties is not working with my driver… it is not “Print to
File”… but someow its forced to Raw. And I noticed that its
working fine with Windows 2000 Uni driver. So I understand the
driver forces the data type to “raw” even though I set it to
EMF in properties…

Do you have any idea which part of the driver can force the
data type to raw during the print job?

Thanks in advance,
Sridhar

---- On Thu, 29 Aug 2002, Ashwin Needamangala
(xxxxx@microsoft.com) wrote:

No. Setting it in the printer properties is the only reliable
way to
produce EMF. Note that in the case of printing to FILE, this
will not
apply though and you will always get direct RAW printing.

  • Ashwin

This posting is provided “AS IS” with no warranties, and
confers no
rights.

-----Original Message-----
From: Sridhar Krishnan [mailto:xxxxx@ureach.com]
Sent: Wednesday, August 28, 2002 5:12 PM
To: NT Developers Interest List
Subject: [ntdev] EMF spooling is not working

Hi,

I tried to set the data type as “NT EMF 1.008” using the DDK
sample print processor for a printer. But the spool files are
created with “Raw” Type always…

Is there any way can I force the spooler to create EMF spool
files other than setting it in the Printer properties?

Thanks in advance,
Sridhar


Get your own “800” number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag


You are currently subscribed to ntdev as:
xxxxx@microsoft.com To
unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as:
xxxxx@uReach.com
To unsubscribe send a blank email to leave-ntdev-
xxxxx@lists.osr.com


Get your own “800” number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

When I said that you need to set it in the Printer Properties, I didn’t
mean setting the data type in the Print Processor dialog. You need to
check “Enable advanced printing features” in the advanced tab of the
printer properties in order to get EMF. Setting the data type is not
going to cut it.

Here are some other factors that affect EMF v. RAW.

  1. When you print to a printer connection the spooler will force RAW if
    the GDI on the client and server machine do not match, (i.e. a match is
    when the EMF version supported on the client is also supported on the
    server). When printing to a local printer the spooler will by default
    spool EMF(for quick return to app) and then the data is send out the
    port as RAW.

  2. Then is no registry hack to make a printer connection send EMF if the
    GDI version on the client and server machine do not match.

  3. The check for compatible GDI versions occurs at print time, and is
    over ridden by the spooler no matter what the registry settings are set
    to.

  4. It can also depend on what the app specifies for lpszDatatypein its
    StartDoc call. If it specifies RAW or anything other EMF, RAW will be
    used. But if it specifies EMF, other internal logic in the print
    subsystem comes into play and this may change or not depending on
    numerous factors.

  • Ashwin

This posting is provided “AS IS” with no warranties, and confers no
rights.

-----Original Message-----
From: Sridhar Krishnan [mailto:xxxxx@ureach.com]
Sent: Thursday, August 29, 2002 4:50 PM
To: NT Developers Interest List
Subject: [ntdev] RE: EMF spooling is not working

Hi Ashwin,

Thanks for your response. Setting EMF data type in printer
properties is not working with my driver… it is not “Print to
File”… but someow its forced to Raw. And I noticed that its
working fine with Windows 2000 Uni driver. So I understand the
driver forces the data type to “raw” even though I set it to
EMF in properties…

Do you have any idea which part of the driver can force the
data type to raw during the print job?

Thanks in advance,
Sridhar

---- On Thu, 29 Aug 2002, Ashwin Needamangala
(xxxxx@microsoft.com) wrote:

No. Setting it in the printer properties is the only reliable
way to
produce EMF. Note that in the case of printing to FILE, this
will not
apply though and you will always get direct RAW printing.

  • Ashwin

This posting is provided “AS IS” with no warranties, and
confers no
rights.

-----Original Message-----
From: Sridhar Krishnan [mailto:xxxxx@ureach.com]
Sent: Wednesday, August 28, 2002 5:12 PM
To: NT Developers Interest List
Subject: [ntdev] EMF spooling is not working

Hi,

I tried to set the data type as “NT EMF 1.008” using the DDK
sample print processor for a printer. But the spool files are
created with “Raw” Type always…

Is there any way can I force the spooler to create EMF spool
files other than setting it in the Printer properties?

Thanks in advance,
Sridhar


Get your own “800” number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag


You are currently subscribed to ntdev as:
xxxxx@microsoft.com To
unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as:
xxxxx@uReach.com
To unsubscribe send a blank email to leave-ntdev-
xxxxx@lists.osr.com


Get your own “800” number
Voicemail, fax, email, and a lot more http://www.ureach.com/reg/tag


You are currently subscribed to ntdev as: xxxxx@microsoft.com To
unsubscribe send a blank email to %%email.unsub%%

Thanks Ashwin,

Its a printer connected to the local machine…
And I get lpszDataType in StartDoc as NULL. I tried to assign a
string “EMF” to lpszStartDoc… but still the spooler uses “Raw”.

Do you think its possible to force the spooler to use data type
as “Raw” with private DEVMODE when DrvEnablePDEV or
DrvDeviceCapabilities is called?

Sridhar

---- On Thu, 29 Aug 2002, Ashwin Needamangala
(xxxxx@microsoft.com) wrote:

When I said that you need to set it in the Printer
Properties, I didn’t
mean setting the data type in the Print Processor dialog. You
need to
check “Enable advanced printing features” in the advanced tab
of the
printer properties in order to get EMF. Setting the data type
is not
going to cut it.

Here are some other factors that affect EMF v. RAW.

  1. When you print to a printer connection the spooler will
    force RAW if
    the GDI on the client and server machine do not match, (i.e.
    a match is
    when the EMF version supported on the client is also
    supported on the
    server). When printing to a local printer the spooler will
    by default
    spool EMF(for quick return to app) and then the data is send
    out the
    port as RAW.

  2. Then is no registry hack to make a printer connection send
    EMF if the
    GDI version on the client and server machine do not match.

  3. The check for compatible GDI versions occurs at print
    time, and is
    over ridden by the spooler no matter what the registry
    settings are set
    to.

  4. It can also depend on what the app specifies for
    lpszDatatypein its
    StartDoc call. If it specifies RAW or anything other EMF, RAW
    will be
    used. But if it specifies EMF, other internal logic in the
    print
    subsystem comes into play and this may change or not
    depending on
    numerous factors.

  • Ashwin

This posting is provided “AS IS” with no warranties, and
confers no
rights.

-----Original Message-----
From: Sridhar Krishnan [mailto:xxxxx@ureach.com]
Sent: Thursday, August 29, 2002 4:50 PM
To: NT Developers Interest List
Subject: [ntdev] RE: EMF spooling is not working

Hi Ashwin,

Thanks for your response. Setting EMF data type in printer
properties is not working with my driver… it is not “Print
to
File”… but someow its forced to Raw. And I noticed that its
working fine with Windows 2000 Uni driver. So I understand
the
driver forces the data type to “raw” even though I set it to
EMF in properties…

Do you have any idea which part of the driver can force the
data type to raw during the print job?

Thanks in advance,
Sridhar

---- On Thu, 29 Aug 2002, Ashwin Needamangala
(xxxxx@microsoft.com) wrote:

> No. Setting it in the printer properties is the only
reliable
way to
> produce EMF. Note that in the case of printing to FILE, this
will not
> apply though and you will always get direct RAW printing.
>
> - Ashwin
>
> This posting is provided “AS IS” with no warranties, and
confers no
> rights.
>
>
> -----Original Message-----
> From: Sridhar Krishnan [mailto:xxxxx@ureach.com]
> Sent: Wednesday, August 28, 2002 5:12 PM
> To: NT Developers Interest List
> Subject: [ntdev] EMF spooling is not working
>
>
> Hi,
>
> I tried to set the data type as “NT EMF 1.008” using the DDK
> sample print processor for a printer. But the spool files
are
> created with “Raw” Type always…
>
> Is there any way can I force the spooler to create EMF spool
> files other than setting it in the Printer properties?
>
>
> Thanks in advance,
> Sridhar
>
>
> ________________________________________________
> Get your own “800” number
> Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag
>
>
> —
> You are currently subscribed to ntdev as:
xxxxx@microsoft.com To
> unsubscribe send a blank email to %%email.unsub%%
>
>
> —
> You are currently subscribed to ntdev as:
xxxxx@uReach.com
> To unsubscribe send a blank email to leave-ntdev-
xxxxx@lists.osr.com


Get your own “800” number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag


You are currently subscribed to ntdev as:
xxxxx@microsoft.com To
unsubscribe send a blank email to %%email.unsub%%


You are currently subscribed to ntdev as:
xxxxx@uReach.com
To unsubscribe send a blank email to leave-ntdev-
xxxxx@lists.osr.com


Get your own “800” number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag

How did you try to assign “EMF” to lpszDataType? In any case, that isn’t
going to cut it since you cannot just change the argument to StartDoc
and expect it to spool EMF. I find it strange that you are getting RAW
even if you check the “Enable advanced printing features” box in the
Advanced tab of printer properties. What kind of driver is this? Also,
how are you determining that the spooler is spooling the data as RAW?

  • Ashwin

This posting is provided “AS IS” with no warranties, and confers no
rights.

-----Original Message-----
From: Sridhar Krishnan [mailto:xxxxx@ureach.com]
Sent: Friday, August 30, 2002 1:42 PM
To: NT Developers Interest List
Subject: [ntdev] RE: EMF spooling is not working

Thanks Ashwin,

Its a printer connected to the local machine…
And I get lpszDataType in StartDoc as NULL. I tried to assign a
string “EMF” to lpszStartDoc… but still the spooler uses “Raw”.

Do you think its possible to force the spooler to use data type
as “Raw” with private DEVMODE when DrvEnablePDEV or
DrvDeviceCapabilities is called?

Sridhar