Change windows default printer ... Urgent



Hi People!

I'm trying to change the windows default printer using this code:

http://www.dotnet247.com/247reference/msgs/3/19179.aspx

but when I execute this code, the error: Method not existis or not
implemented.

ocorred in this line: mo.InvokeMethod("SetDefaultPrinter", inParams, null);

mo: ManagementObject


Does anyone know how can I solve that?

tnks a lot

Marcus Vinícius M. Montezano
..Net Developer

.



Relevant Pages

  • Win32::Process Kill Process in Windows ME
    ... I want to kill a Process in Windows ME, ... I execute this in ME, ... Prev by Date: ...
    (comp.lang.perl.modules)
  • Re: Headers, footers and macros
    ... Dim r As Range ... ..Execute Replace:=wdReplaceAll ... Word 2002, Windows 2000 ... Prev by Date: ...
    (microsoft.public.word.vba.general)
  • subprocess.Popen - terminate
    ... I am using subprocess.Popen to execute an executable, ... terminate that process when I want? ... not looking for a windows only solution I need something that is ... Prev by Date: ...
    (comp.lang.python)
  • [C#] How can I listen a key of my keyboard
    ... I'd like to listen a key of my keyboard to execute some code when that key ... I'm not use a Windows Forms that's why I can not use a keydown ... Prev by Date: ...
    (microsoft.public.dotnet.framework.compactframework)
  • Windows permissions was Re: Its COBOL, Jim, but not as we know it...
    ... Windows is highly configurable; the fact that people ignore this and run ... One of the problems is also figuring out what security features ... Microsoft email can automatically execute an attachment. ... Here's a transcript from a Linux forum 4 years ago where at least one user ...
    (comp.lang.cobol)