PrintingPermissionLevel, SafePrinting, and restrictions

Posted by Steve Cooper on Stack Overflow See other posts from Stack Overflow or by Steve Cooper
Published on 2010-01-08T15:04:46Z Indexed on 2010/05/15 21:44 UTC
Read the original article Hit count: 167

Filed under:
|
|
|
|

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.

© Stack Overflow or respective owner

Related posts about c#

Related posts about printing