Click to See Complete Forum and Search --> : How to find out if a printer supports Postscript?


Spotnick2
October 19th, 1999, 10:27 AM
I would like to know if there is a way to find out if a printer supports Postscript.

I'm filling a combobox with printers, and I'd like to add only those who supports Postscript..

Anyone have an idea if this is doable?

Thanks.


---
Nicolas LeBlanc
Software Engineer
Ordiplan Inc.

Paul McKenzie
October 19th, 1999, 10:57 AM
Look for article number "Q124135" in the MSDN online help.

Even though it states Windows 3.51, I think it works with 4.0 and Win 95 as well.

Basically you make a call to the Escape() with the device context of the printer and you query the support:

int gPrCode = POSTSCRIPT_PASSTHROUGH;
if( Escape(printerDC, QUERYESCSUPPORT, sizeof(int), (LPSTR)gPrCode, NULL))
{ // The printer is PostScript.
...
}



Regards,

Paul McKenzie

Spotnick2
October 19th, 1999, 11:00 AM
Kind of weird, I did search the MSDN for Postscript and didn't find that article.

Thank you very much, I just need now to find out if it can also be transfered to VB.. because I need it for both platform.


---
Nicolas LeBlanc
Software Engineer
Ordiplan Inc.