PageMediaType PageMediaType PageMediaType PageMediaType Enum

Definición

Especifica tipos de papel de impresión u otros soportes.Specifies types of printing paper or other media.

public enum class PageMediaType
public enum PageMediaType
type PageMediaType = 
Public Enum PageMediaType
Herencia
PageMediaTypePageMediaTypePageMediaTypePageMediaType

Campos

Archival Archival Archival Archival 2

Soporte con calidad de archivo.Archive-quality media.

AutoSelect AutoSelect AutoSelect AutoSelect 1

El dispositivo de impresión selecciona el soporte.The print device selects the media.

BackPrintFilm BackPrintFilm BackPrintFilm BackPrintFilm 3

Película de impresión en reverso específica.Specialty back-printing film.

Bond Bond Bond Bond 4

Papel bond estándar.Standard bond media.

CardStock CardStock CardStock CardStock 5

Tarjetas estándar.Standard card stock.

Continuous Continuous Continuous Continuous 6

Papel continuo.Continuous-feed media.

EnvelopePlain EnvelopePlain EnvelopePlain EnvelopePlain 7

Sobre estándar.Standard envelope.

EnvelopeWindow EnvelopeWindow EnvelopeWindow EnvelopeWindow 8

Sobre con ventana.Window envelope.

Fabric Fabric Fabric Fabric 9

Tela.Fabric media.

HighResolution HighResolution HighResolution HighResolution 10

Soporte específico de alta resolución.Specialty high-resolution media.

Label Label Label Label 11

Etiquetas.Label media.

MultiLayerForm MultiLayerForm MultiLayerForm MultiLayerForm 12

Formularios multicopia adjuntos.Attached multipart forms.

MultiPartForm MultiPartForm MultiPartForm MultiPartForm 13

Formularios multicopia individuales.Individual multipart forms.

None None None None 29

Soporte desconocido o no enumerado.Unknown or unlisted media.

Photographic Photographic Photographic Photographic 14

Soporte fotográfico estándar.Standard photographic media.

PhotographicFilm PhotographicFilm PhotographicFilm PhotographicFilm 15

Soporte de película fotográfica.Film photographic media.

PhotographicGlossy PhotographicGlossy PhotographicGlossy PhotographicGlossy 16

Papel fotográfico brillo.Glossy photographic media.

PhotographicHighGloss PhotographicHighGloss PhotographicHighGloss PhotographicHighGloss 17

Papel fotográfico alto brillo.High-gloss photographic media.

PhotographicMatte PhotographicMatte PhotographicMatte PhotographicMatte 18

Papel fotográfico mate.Matte photographic media.

PhotographicSatin PhotographicSatin PhotographicSatin PhotographicSatin 19

Papel fotográfico satinado.Satin photographic media.

PhotographicSemiGloss PhotographicSemiGloss PhotographicSemiGloss PhotographicSemiGloss 20

Papel fotográfico semibrillo.Semi-gloss photographic media.

Plain Plain Plain Plain 21

Papel normal.Plain paper.

Screen Screen Screen Screen 22

Salida a una presentación en formato continuo.Output to a display in continuous form.

ScreenPaged ScreenPaged ScreenPaged ScreenPaged 23

Salida a una presentación en formato paginado.Output to a display in paged form.

Stationery Stationery Stationery Stationery 24

Específico de papelería.Specialty stationary.

TabStockFull TabStockFull TabStockFull TabStockFull 25

Papel solapado sin cortar (solapa única).Tab stock, not precut (single tabs).

TabStockPreCut TabStockPreCut TabStockPreCut TabStockPreCut 26

Papel solapado precortado (varias solapas).Tab stock, precut (multiple tabs).

Transparency Transparency Transparency Transparency 27

Hoja transparente.Transparent sheet.

TShirtTransfer TShirtTransfer TShirtTransfer TShirtTransfer 28

Soporte utilizado para transferir una imagen a una camiseta.Media that is used to transfer an image to a T-shirt.

Unknown Unknown Unknown Unknown 0

La característica (cuyas opciones se representan mediante esta enumeración) está establecida en una opción no definida en el Esquema de impresión.The feature (whose options are represented by this enumeration) is set to an option not defined in the Print Schema.

Ejemplos

El ejemplo siguiente muestra cómo determinar las capacidades de la impresora y configurar el trabajo de impresión para sacar provecho de ellas.The following example shows how to determine the printer capabilities and configure the print job to take advantage of them.

// ---------------------- GetPrintTicketFromPrinter -----------------------
/// <summary>
///   Returns a PrintTicket based on the current default printer.</summary>
/// <returns>
///   A PrintTicket for the current local default printer.</returns>
PrintTicket^ GetPrintTicketFromPrinter () 
{
   PrintQueue^ printQueue = nullptr;

   LocalPrintServer^ localPrintServer = gcnew 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
   {
      return nullptr;
   }
   // 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()
// ---------------------- 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()
' ---------------------- GetPrintTicketFromPrinter -----------------------
''' <summary>
'''   Returns a PrintTicket based on the current default printer.</summary>
''' <returns>
'''   A PrintTicket for the current local default printer.</returns>
Private Function GetPrintTicketFromPrinter() As PrintTicket
    Dim printQueue As PrintQueue = Nothing

    Dim localPrintServer As New LocalPrintServer()

    ' Retrieving collection of local printer on user machine
    Dim localPrinterCollection As PrintQueueCollection = localPrintServer.GetPrintQueues()

    Dim localPrinterEnumerator As System.Collections.IEnumerator = localPrinterCollection.GetEnumerator()

    If localPrinterEnumerator.MoveNext() Then
        ' Get PrintQueue from first available printer
        printQueue = CType(localPrinterEnumerator.Current, PrintQueue)
    Else
        ' No printer exist, return null PrintTicket
        Return Nothing
    End If

    ' Get default PrintTicket from printer
    Dim printTicket As PrintTicket = printQueue.DefaultPrintTicket

    Dim printCapabilites As PrintCapabilities = printQueue.GetPrintCapabilities()

    ' Modify PrintTicket
    If printCapabilites.CollationCapability.Contains(Collation.Collated) Then
        printTicket.Collation = Collation.Collated
    End If

    If printCapabilites.DuplexingCapability.Contains(Duplexing.TwoSidedLongEdge) Then
        printTicket.Duplexing = Duplexing.TwoSidedLongEdge
    End If

    If printCapabilites.StaplingCapability.Contains(Stapling.StapleDualLeft) Then
        printTicket.Stapling = Stapling.StapleDualLeft
    End If

    Return printTicket
End Function ' end:GetPrintTicketFromPrinter()

Comentarios

Los valores de este tipo se utilizan principalmente para estos propósitos:The values of this type are used primarily for these purposes:

El Unknownvalue nunca se usa en las propiedades de PrintCapabilities objetos.The Unknownvalue is never used in properties of PrintCapabilities objects.

Nunca debe establecer un PrintTicket propiedad Unknown.You should never set a PrintTicket property to Unknown. Si algún otro PrintTicket generar la aplicación ha creado un documento PrintTicket que establece la función de tipo de medio de página en una opción no reconocida (es decir, una opción que no está definida en el esquema de impresión), un PrintTicket objeto de la aplicación que se construye con ese documento tendrá desconocido como el valor de la PageMediaType propiedad.If some other PrintTicket producing application has created a PrintTicket document that sets the page media type feature to an unrecognized option (that is, an option that is not defined in the Print Schema), then a PrintTicket object in your application that is constructed with that document will have Unknown as the value of the PageMediaType property.

Aunque el PrintTicket y PrintCapabilities no se puede heredar las clases, puede ampliar el Print Schema para reconocer las características del dispositivo de impresión que no se recogen en el PageMediaType o PrintCapabilities clases.Although the PrintTicket and PrintCapabilities classes cannot be inherited, you can extend the Print Schema to recognize print device features that are not accounted for in the PageMediaType or PrintCapabilities classes. Para obtener más información, consulte NOTINBUILD: Cómo: Extender el esquema de impresión y crear nuevas clases de sistema de impresión.For more information, see NOTINBUILD: How to: Extend the Print Schema and Create New Print System Classes.

Se aplica a

Consulte también: