PrintingPermissionLevel, SafePrinting, and restrictions
- by Steve Cooper
There is a PrintingPermission attribute in the framework which takes a PrintingPermissionLevel enumeration with one of these values;
NoPrinting: Prevents access to printers. NoPrinting is a subset of SafePrinting.
SafePrinting: Provides printing only from a restricted dialog box. SafePrinting is a subset of DefaultPrinting.
DefaultPrinting: Provides printing programmatically to the default printer, along with safe printing through semirestricted dialog box. DefaultPrinting is a subset of AllPrinting.
AllPrinting: Provides full access to all printers.
The documentation is really sparse, and I wondered if anyone can tell me more about the SafePrinting option. What does the documentation mean when it says "Provides printing only from a restricted dialog box." I have no idea what this means. Can anyone shed any light?
This subject is touched in the MS certification 70-505: TS: Microsoft .NET Framework 3.5, Windows Forms Application Development and so I'm keen to find out more.