|
Dieser Artikel wurde maschinell übersetzt. Bewegen Sie den Mauszeiger über die Sätze im Artikel, um den Originaltext anzuzeigen. Weitere Informationen
|
Übersetzung
Original
|
PrintCapabilities-Klasse
Namespace: System.Printing
Assembly: ReachFramework (in ReachFramework.dll)
Der PrintCapabilities-Typ macht die folgenden Member verfügbar.
| Name | Beschreibung | |
|---|---|---|
![]() | PrintCapabilities |
| Name | Beschreibung | |
|---|---|---|
![]() | CollationCapability | |
![]() | DeviceFontSubstitutionCapability | |
![]() | DuplexingCapability | |
![]() | InputBinCapability | |
![]() | MaxCopyCount | |
![]() | OrientedPageMediaHeight | |
![]() | OrientedPageMediaWidth | |
![]() | OutputColorCapability | |
![]() | OutputQualityCapability | |
![]() | PageBorderlessCapability | |
![]() | PageImageableArea | |
![]() | PageMediaSizeCapability | |
![]() | PageMediaTypeCapability | |
![]() | PageOrderCapability | |
![]() | PageOrientationCapability | |
![]() | PageResolutionCapability | |
![]() | PageScalingFactorRange | |
![]() | PagesPerSheetCapability | |
![]() | PagesPerSheetDirectionCapability | |
![]() | PhotoPrintingIntentCapability | |
![]() | StaplingCapability | |
![]() | TrueTypeFontModeCapability |
| Name | Beschreibung | |
|---|---|---|
![]() | Equals(Object) | |
![]() | GetHashCode | |
![]() | GetType | |
![]() | ToString |
// ---------------------- GetPrintTicketFromPrinter ----------------------- /// <summary> /// Returns a PrintTicket based on the current default printer.</summary> /// <returns> /// A PrintTicket for the current local default printer.</returns> private PrintTicket GetPrintTicketFromPrinter() { PrintQueue printQueue = null; LocalPrintServer localPrintServer = new LocalPrintServer(); // Retrieving collection of local printer on user machine PrintQueueCollection localPrinterCollection = localPrintServer.GetPrintQueues(); System.Collections.IEnumerator localPrinterEnumerator = localPrinterCollection.GetEnumerator(); if (localPrinterEnumerator.MoveNext()) { // Get PrintQueue from first available printer printQueue = (PrintQueue)localPrinterEnumerator.Current; } else { // No printer exist, return null PrintTicket return null; } // Get default PrintTicket from printer PrintTicket printTicket = printQueue.DefaultPrintTicket; PrintCapabilities printCapabilites = printQueue.GetPrintCapabilities(); // Modify PrintTicket if (printCapabilites.CollationCapability.Contains(Collation.Collated)) { printTicket.Collation = Collation.Collated; } if ( printCapabilites.DuplexingCapability.Contains( Duplexing.TwoSidedLongEdge) ) { printTicket.Duplexing = Duplexing.TwoSidedLongEdge; } if (printCapabilites.StaplingCapability.Contains(Stapling.StapleDualLeft)) { printTicket.Stapling = Stapling.StapleDualLeft; } return printTicket; }// end:GetPrintTicketFromPrinter()
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core-Rolle wird nicht unterstützt), Windows Server 2008 R2 (Server Core-Rolle wird mit SP1 oder höher unterstützt; Itanium wird nicht unterstützt)
.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen für .NET Framework.
