Printer Driver

How do you get the DC (Device Context) of a print job? Are there any example of this in the DDK?

Thanks
Weston Fryatt

What do you need the device context for? In any case, one place for you
to get the device context is in DrvDocumentEvent.

  • Ashwin

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

-----Original Message-----
From: Weston Fryatt [mailto:xxxxx@muuf.com]
Sent: Friday, March 07, 2003 7:50 AM
To: NT Developers Interest List
Subject: [ntdev] Printer Driver

How do you get the DC (Device Context) of a print job? Are there any
example of this in the DDK?

Thanks
Weston Fryatt


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

Thanks!

The reason why I’m interested in getting the DC, Is so that I can use the DC
to get the bitmap of the image that is being sent to the printer and send
the image to our Document Imaging Server.

Thanks,
Weston Fryatt

----- Original Message -----
From: “Ashwin Needamangala”
To: “NT Developers Interest List”
Sent: Friday, March 07, 2003 4:15 PM
Subject: [ntdev] RE: Printer Driver

What do you need the device context for? In any case, one place for you
to get the device context is in DrvDocumentEvent.

- Ashwin

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

-----Original Message-----
From: Weston Fryatt [mailto:xxxxx@muuf.com]
Sent: Friday, March 07, 2003 7:50 AM
To: NT Developers Interest List
Subject: [ntdev] Printer Driver

How do you get the DC (Device Context) of a print job? Are there any
example of this in the DDK?

Thanks
Weston Fryatt


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


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

You shouldn’t be looking for the DC to get a raster image of the
document being printed. A printer DC is not valid under all
circumstances within a print driver. So you should use
IPrintOemUni::FilterGraphics or IPrintOemUni::ImageProcessing to obtain
the source bitmap to send to your imaging server. This would be the
recommended approach.

  • Ashwin

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

-----Original Message-----
From: Weston Fryatt [mailto:xxxxx@muuf.com]
Sent: Friday, March 07, 2003 2:24 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Printer Driver

Thanks!

The reason why I’m interested in getting the DC, Is so that I can use
the DC to get the bitmap of the image that is being sent to the printer
and send the image to our Document Imaging Server.

Thanks,
Weston Fryatt

----- Original Message -----
From: “Ashwin Needamangala”
To: “NT Developers Interest List”
Sent: Friday, March 07, 2003 4:15 PM
Subject: [ntdev] RE: Printer Driver

What do you need the device context for? In any case, one place for you
to get the device context is in DrvDocumentEvent.

- Ashwin

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

-----Original Message-----
From: Weston Fryatt [mailto:xxxxx@muuf.com]
Sent: Friday, March 07, 2003 7:50 AM
To: NT Developers Interest List
Subject: [ntdev] Printer Driver

How do you get the DC (Device Context) of a print job? Are there any
example of this in the DDK?

Thanks
Weston Fryatt


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


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


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

Thanks again!!! :slight_smile:

Weston Fryatt

----- Original Message -----
From: “Ashwin Needamangala”
To: “NT Developers Interest List”
Sent: Friday, March 07, 2003 4:34 PM
Subject: [ntdev] RE: Printer Driver

You shouldn’t be looking for the DC to get a raster image of the
document being printed. A printer DC is not valid under all
circumstances within a print driver. So you should use
IPrintOemUni::FilterGraphics or IPrintOemUni::ImageProcessing to obtain
the source bitmap to send to your imaging server. This would be the
recommended approach.

- Ashwin

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

-----Original Message-----
From: Weston Fryatt [mailto:xxxxx@muuf.com]
Sent: Friday, March 07, 2003 2:24 PM
To: NT Developers Interest List
Subject: [ntdev] RE: Printer Driver

Thanks!

The reason why I’m interested in getting the DC, Is so that I can use
the DC to get the bitmap of the image that is being sent to the printer
and send the image to our Document Imaging Server.

Thanks,
Weston Fryatt

----- Original Message -----
From: “Ashwin Needamangala”
To: “NT Developers Interest List”
Sent: Friday, March 07, 2003 4:15 PM
Subject: [ntdev] RE: Printer Driver

What do you need the device context for? In any case, one place for you
to get the device context is in DrvDocumentEvent.

- Ashwin

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

-----Original Message-----
From: Weston Fryatt [mailto:xxxxx@muuf.com]
Sent: Friday, March 07, 2003 7:50 AM
To: NT Developers Interest List
Subject: [ntdev] Printer Driver

How do you get the DC (Device Context) of a print job? Are there any
example of this in the DDK?

Thanks
Weston Fryatt


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


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


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


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