PageMediaType PageMediaType PageMediaType PageMediaType Enum

Definizione

Specifica i tipi di carta o altri supporti di stampa.Specifies types of printing paper or other media.

public enum class PageMediaType
public enum PageMediaType
type PageMediaType = 
Public Enum PageMediaType
Ereditarietà
PageMediaTypePageMediaTypePageMediaTypePageMediaType

Campi

Archival Archival Archival Archival 2

Supporti durevoli.Archive-quality media.

AutoSelect AutoSelect AutoSelect AutoSelect 1

I supporti vengono selezionati dal dispositivo di stampa.The print device selects the media.

BackPrintFilm BackPrintFilm BackPrintFilm BackPrintFilm 3

Pellicola speciale per retro stampato.Specialty back-printing film.

Bond Bond Bond Bond 4

Carta standard per stampanti e fotocopiatrici.Standard bond media.

CardStock CardStock CardStock CardStock 5

Cartoncino standard.Standard card stock.

Continuous Continuous Continuous Continuous 6

Supporti a inserimento continuo.Continuous-feed media.

EnvelopePlain EnvelopePlain EnvelopePlain EnvelopePlain 7

Busta standard.Standard envelope.

EnvelopeWindow EnvelopeWindow EnvelopeWindow EnvelopeWindow 8

Busta con finestra.Window envelope.

Fabric Fabric Fabric Fabric 9

Supporti in tessuto.Fabric media.

HighResolution HighResolution HighResolution HighResolution 10

Supporti speciali ad alta risoluzione.Specialty high-resolution media.

Label Label Label Label 11

Etichette.Label media.

MultiLayerForm MultiLayerForm MultiLayerForm MultiLayerForm 12

Moduli multiparte uniti.Attached multipart forms.

MultiPartForm MultiPartForm MultiPartForm MultiPartForm 13

Moduli multiparte singoli.Individual multipart forms.

None None None None 29

Supporti sconosciuti o non elencati.Unknown or unlisted media.

Photographic Photographic Photographic Photographic 14

Supporti fotografici standard.Standard photographic media.

PhotographicFilm PhotographicFilm PhotographicFilm PhotographicFilm 15

Supporti fotografici in pellicola.Film photographic media.

PhotographicGlossy PhotographicGlossy PhotographicGlossy PhotographicGlossy 16

Supporti fotografici lucidi.Glossy photographic media.

PhotographicHighGloss PhotographicHighGloss PhotographicHighGloss PhotographicHighGloss 17

Supporti fotografici extra lucidi.High-gloss photographic media.

PhotographicMatte PhotographicMatte PhotographicMatte PhotographicMatte 18

Supporti fotografici opachi.Matte photographic media.

PhotographicSatin PhotographicSatin PhotographicSatin PhotographicSatin 19

Supporti fotografici satinati.Satin photographic media.

PhotographicSemiGloss PhotographicSemiGloss PhotographicSemiGloss PhotographicSemiGloss 20

Supporti fotografici semilucidi.Semi-gloss photographic media.

Plain Plain Plain Plain 21

Carta semplice.Plain paper.

Screen Screen Screen Screen 22

Output sullo schermo in maschera continua.Output to a display in continuous form.

ScreenPaged ScreenPaged ScreenPaged ScreenPaged 23

Output sullo schermo in maschera non continua.Output to a display in paged form.

Stationery Stationery Stationery Stationery 24

Materiale speciale di cancelleria.Specialty stationary.

TabStockFull TabStockFull TabStockFull TabStockFull 25

Separatore in cartoncino non pretagliato (linguette singole).Tab stock, not precut (single tabs).

TabStockPreCut TabStockPreCut TabStockPreCut TabStockPreCut 26

Separatore in cartoncino pretagliato (linguette multiple).Tab stock, precut (multiple tabs).

Transparency Transparency Transparency Transparency 27

Foglio trasparente.Transparent sheet.

TShirtTransfer TShirtTransfer TShirtTransfer TShirtTransfer 28

Supporti utilizzati per il trasferimento di immagini su magliette.Media that is used to transfer an image to a T-shirt.

Unknown Unknown Unknown Unknown 0

La funzionalità, le cui opzioni sono rappresentate da questa enumerazione, è impostata su un'opzione non definita nello schema di stampa.The feature (whose options are represented by this enumeration) is set to an option not defined in the Print Schema.

Esempi

Nell'esempio seguente viene illustrato come determinare le funzionalità della stampante e come configurare il processo di stampa per sfruttarne i vantaggi.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()

Commenti

I valori di questo tipo vengono utilizzati principalmente per gli scopi seguenti:The values of this type are used primarily for these purposes:

Unknownvalue non viene mai usato nelle proprietà degli PrintCapabilities oggetti.The Unknownvalue is never used in properties of PrintCapabilities objects.

Non impostare mai una PrintTicket proprietà su Unknown.You should never set a PrintTicket property to Unknown. Se un'altra PrintTicket applicazione producente ha creato un documento PrintTicket che imposta la funzionalità del tipo di supporto della pagina su un'opzione non riconosciuta, ovvero un'opzione non definita nello schema di stampa, quindi un PrintTicket oggetto nel l'applicazione costruita con tale documento avrà un valore sconosciuto come valore della PageMediaType proprietà.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.

Sebbene le PrintTicket classi PrintCapabilities e non possano essere ereditate, è possibile estendere lo schema di stampa per riconoscere le funzionalità del dispositivo di stampa che non PageMediaType sono PrintCapabilities contabilizzate nelle classi o.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. Per altre informazioni, vedere Procedura: Estendere lo schema di stampa e creare nuove classidi sistema di stampa.For more information, see How to: Extend the Print Schema and Create New Print System Classes.

Si applica a

Vedi anche