Files
docs-desktop/dotnet-desktop-guide/framework/winforms/more-secure-printing-in-windows-forms.md
T
Andy De George c0ba284473 Initial winforms content migrated (#18)
* Merge winforms framework content to working branch (#14)

* Breadcrumb / TOC / Move net5 to net folder (#15)

* change path from net5 to net

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Mess with bread/toc

* Add .net 5 winforms placeholder article (#16)

* added some metadata and adjusted net5 placeholder

* corrections

* corrections

* corrections

* Test1

* Swapping landing page vs concept

* fix links

* Fix links

* Fix desc
2020-09-01 16:26:21 -07:00

2.7 KiB

title, ms.date, helpviewer_keywords, ms.assetid
title ms.date helpviewer_keywords ms.assetid
More Secure Printing 03/30/2017
Windows Forms, printing
PrintingPermission class [Windows Forms], Windows Forms security
printing [Windows Forms], security
security [Windows Forms], printing
48fd36ac-872f-4de0-902a-e52969cd4367

More Secure Printing in Windows Forms

Windows Forms applications frequently include printing abilities. The .NET Framework uses the xref:System.Drawing.Printing.PrintingPermission class to control access to printing capabilities and the associated xref:System.Drawing.Printing.PrintingPermissionLevel enumeration value to indicate the level of access. By default, printing is enabled by default in the Local Intranet and Internet zones; however, the level of access is restricted in both zones. Whether your application can print, requires user interaction, or cannot print depends upon the permission value granted to the application. By default, the Local Intranet zone receives xref:System.Drawing.Printing.PrintingPermissionLevel.DefaultPrinting access and the Intranet zone receives xref:System.Drawing.Printing.PrintingPermissionLevel.SafePrinting access.

The following table shows the functionality available at each printing permission level.

PrintingPermissionLevel Description
xref:System.Drawing.Printing.PrintingPermissionLevel.AllPrinting Provides full access to all installed printers.
xref:System.Drawing.Printing.PrintingPermissionLevel.DefaultPrinting Enables programmatic printing to the default printer and safer printing through a restrictive printing dialog box. xref:System.Drawing.Printing.PrintingPermissionLevel.DefaultPrinting is a subset of xref:System.Drawing.Printing.PrintingPermissionLevel.AllPrinting.
xref:System.Drawing.Printing.PrintingPermissionLevel.SafePrinting Provides printing only from a more-restricted dialog box. xref:System.Drawing.Printing.PrintingPermissionLevel.SafePrinting is a subset of xref:System.Drawing.Printing.PrintingPermissionLevel.DefaultPrinting.
xref:System.Drawing.Printing.PrintingPermissionLevel.NoPrinting Prevents access to printers. xref:System.Drawing.Printing.PrintingPermissionLevel.NoPrinting is a subset of xref:System.Drawing.Printing.PrintingPermissionLevel.SafePrinting.

See also