genprint print processor and EMF

genprint print processor and EMF

Post by gsalvado » Sat, 21 Feb 2004 19:43:16


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.

Advanced printing and use spooled are checked. The Printer Driver is
HP Laserjet 1100.

This is in Windows 2000 Professional.


Thanks in advance,
Germ Salvador
 
 
 

genprint print processor and EMF

Post by Ashwin [MS » Sun, 22 Feb 2004 02:45:45

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.




supports
fiction.

 
 
 

genprint print processor and EMF

Post by gsalvado » Tue, 24 Feb 2004 23:56:22


Thanks four your help to both of you.

It turned out to be a driver problem, using the Microsoft supplied
drivers for the HP Laserjet 1100 I could finally get an EMF job.

Sadly, what I want to do is to insert a watermark, for any printer and
driver. I guess I'll have to implement it in EMF and RAW (PCL only
will be ok, I suppose). I thought it could be done only in EMF, for
all printers.


German
 
 
 

genprint print processor and EMF

Post by Ashwin [MS » Thu, 26 Feb 2004 05:02:18

The case you have mentioned will result in RAW due to the GDI versions being
different due to the OS version mismatch. Anytime the OS versions don't
match, the spooler will force RAW to ensure that the EMF versions don't
clash.

--
- Ashwin

Microsoft Printing, Imaging and Fax Team
This posting is provided "AS IS" with no warranties, and confers no rights.




out
type.
spool