Printer properties silverlight com-interop and out of browser
I need to access a printer to know if is active and have paper. I'm using silverlight 4 out of box with elevated trust. At this point I have: string cFileName = "temp.txt"; string cAction = "print"; using (dynamic fso = AutomationFactory.CreateObject(@"Scripting.FileSystemObject")) { dynamic file = fso.CreateTextFile(cFileName, true); file.WriteLine("First line text"); file.WriteLine("second line text"); file.Close(); } //Print dynamic shell = AutomationFactory.CreateObject("Shell.Application"); shell.ShellExecute(cFileName, "", "", cAction, 1); I'm using a temp file txt to creat my print page