Re: genprint print processor and EMF

From: Ashwin [MS] (ashwinn_at_online.microsoft.com)
Date: 02/20/04


Date: Fri, 20 Feb 2004 09:45:45 -0800

The reason that you are getting RAW is because the decision on whether to
spool EMF or RAW is made by GDI based on various factors. Here are some of
the factors:

Firstly, if the app uses the print apis directly, it can specify whatever
datatype it wants. But if the app prints through GDI:

We'll go RAW in the following cases:

- Printing to FILE:
- Printing directly to port (no spooling)
- Client disables "advanced printing features" in printer properties.

Additionally, for networking printing:

- Client is anything other than NT/Win200/XP
- Client doesn't use a "true" connection
- Printing to a "masq" printer (win9x, netware, etc.)
- Server has "printer attribute RAW only" bit set
- Server doesn't accept client's EMF version

So there is no real guarantee that you will get on particular datatype or
the other.

-- 
- Ashwin
Microsoft Printing, Imaging and Fax Team
This posting is provided "AS IS" with no warranties, and confers no rights.
"Carey Gregory" <tiredofspam123@comcast.net> wrote in message
news:2hec309lielvu0gv842u4rn6j1m5psnam7@4ax.com...
> gsalvador@futurespace.es (German Salvador) wrote:
>
> >Hello,
> >
> >I am trying to write a print processor based on genprint DDK sample,
> >but I am facing a problem: My processor only receives RAW print jobs,
> >even when the default data type is any of the EMF types.
> >
> >I have tried to modify the processor, taking out RAW format from the
> >supported data types, but in this case, my processor is just not
> >called for any printing job, only EnumPrintProcessorDataTypes is
> >called.
>
> As you've already discovered, your print processor *must* support the RAW
> data type or it simply won't work.  Beyond that, the data types it
supports
> have little effect.  Most of the DDK documentation on this is pure
fiction.
>
> Assuming EnumPrintProcessorDataTypes is correctly coded, and you've tested
> this with several different applications, then make sure the
> PRINTER_ATTRIBUTE_DIRECT and PRINTER_ATTRIBUTE_RAW_ONLY attributes are not
> set for the printer.
>
>
> --
> Carey Gregory
> Windows Print Drivers & Components
> http://www.gw-tech.com


Relevant Pages

  • Re: [SLE] Serving Printers from SuSE?
    ... > Just a note if using the raw option you may have to alter the two mime files ... Which case of printing? ... printing but without an explicite "-o raw" option the CUPS filtering ... system would reject a unknown MIME type with the ...
    (SuSE)
  • Re: Network Printing
    ... Subject: Network Printing ... Newsgroups: microsoft.public.win2000.printing ... The port is configured by the NetGear software and is a Standard TCP/IP port, identified as IP_192.168.0.5, the ... Raw, and the port number is 9100. ...
    (microsoft.public.win2000.printing)
  • Re: Tackling a shared USB printer (linux -> WXP)
    ... To people seeing this problem (needing to define a raw print queue for ... Windows printing to a Linux-hosted queue to work), ... Raw printing should work with this ...
    (Fedora)
  • Re: SP2 network printing problems
    ... Set Winprint = raw ... Check Use print spooler and sub check start printing emediately. ... need to be converted to raw on the other side and take longer. ...
    (microsoft.public.windowsxp.basics)
  • Re: SP2 network printing problems
    ... Set Winprint = raw ... Check Use print spooler and sub check start printing emediately. ... need to be converted to raw on the other side and take longer. ...
    (microsoft.public.windowsxp.general)