CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 1999
    Location
    Montreal, Quebec, Canada
    Posts
    192

    How to find out if a printer supports Postscript?

    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.

  2. #2
    Join Date
    Apr 1999
    Posts
    27,449

    Re: How to find out if a printer supports Postscript?

    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


  3. #3
    Join Date
    Jul 1999
    Location
    Montreal, Quebec, Canada
    Posts
    192

    Re: How to find out if a printer supports Postscript?

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured