CommonDialog.PrinterDefault and 2000/XP

HarvestR
04-28-2004, 10:07 AM
Hello all,

I set the .PrinterDefault property of a commondialog to True, and flags to have it display Printer Setup dialog (Flags = &H40).

When I select a printer, this printer becomes de default printer for Windows, and that's what I want. But I have a problem when it comes to select a PaperSize or a PaperBin. These are correctly set with windows 98, but are not for Windows NT, 2000 and XP.

I found some infos on MSDN saying it's because of security settings in NT based OS, but... no more.

To make it short : How can I change the Default Printer settings programatically so they are modified in windows, not only in my App session.(somewhat like emulating the Printers Control Panel actions).

English isn't my natural language, so I hope I'm still understandable...

Thank you all,

HarvestR

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum