Set it to Print Directly to the Printer

G

Guest

I need to automatically set a printer's properties to "Print directly to the
printer" instead of "Spool print documents so program finishes printing
faster".

How can this be done?

P.S. I am refering to the IntelliDoc printer driver used for creating PDF's
and I would actually prefer to have this set at the time of installing the
printer driver if possible.
 
G

Guest

You can only do this AFTER installing the printer. Go to:
Start>Control Panel>Printers and Faxes>rightclick your printer>
click Properties>Advanced tab>tick "print directly to printer>Apply>OK
 
G

Guest

I want to do it automatically, not via user interface. I was toying with
modifying the registry to do this but I do not know how to automatically
update the registry via a command file or similar.
 
G

Guest

That's exactly what I wrote. Why would you want to edit the Registry?
You have to set it up first, then it will automatically print directly to
the printer.
Do not try to change the Registry for that will not do it. Clicking Apply
and OK
will set and save the settings. In other words, you have to set up the
interface first (once) then.......
 
D

Dieter

you can use Windows-APi-Funktion "SetPrinter" with Level 5 using
PRINTER_INFO_5 struct.
1) OpenPrinter() with PRINTER_ACCESS_ADMINISTER rights
2) GetPrinter() with Level5 filling the structure
3) Change attributes-value "PRINTER_ATTRIBUTE_DIRECT" (reseting some other
values)
4) SetPrinter() with new values
5) ClosePrinter()

If you want to edit registry values, look to changes in
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Print\Printers\<your
printer>\DsSpooler
You can use regmon from sysinternals to examine changing values -

If you change values, it could be necessary to restart the spooler that
changes will recognized.

Dieter
 
A

Alan Morris

the prncnfg.vbs script in system32 will do this as well

prncnfg -p printername +direct
 

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. After that, you can post your question and our members will help you out.

Ask a Question

Top