OpenPrinter2() and Printer Cache

Discussion in 'Windows Vista Drivers' started by Sankaran PV, Nov 5, 2013.

  1. Sankaran PV

    Sankaran PV Guest

    Hello All,

    I am facing a timing issue when the printer driver is tested in client-server environment. The brief of this issue is as follows;
    1. Installed my 64 bit printer driver in Server and shared it.
    2. Added same driver's 32 bit as additional driver in the ssame server.
    3. In the server, I have changed the driver properties using Printer Properties->Advanced->Printing Defaults
    (Eg. N-UP to 16-up, Staple = 2 Staple, Punch = ON etc)
    4. Connected to the driver from my client. When I see the printer properties, the properties that I have set on server is not reflected 'Immediately". After 5 to 6 minutes, I could see the settings are getting reflected.

    My trial:
    I have tried reading the printer driver information and configuration information using OpenPrinter2() with 'PRINTER_OPTION_NO_CACHE' option.
    This is taking very long time ( 5 to 6 minutes) to load my Printer Driver Configuration Tab.

    Is there a way to make OpenPrinter2() return faster? Or forcibily initiate a server-to-client cache refresh?

    Any suggestion would be really appreciable.

    Warm Regards,
    Sankaran PV, Nov 5, 2013
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.