VB.Net by API/System.Drawing.Printing/PaperSource — различия между версиями

Материал из VB Эксперт
Перейти к: навигация, поиск
м (1 версия)
 
(нет различий)

Текущая версия на 12:50, 26 мая 2010

PaperSource.SourceName

  
Imports System
Imports System.Drawing.Printing
Module Client
    Sub Main()
        Dim pd As PrintDocument = New PrintDocument()
        Dim pg As PageSettings = pd.DefaultPageSettings
        Dim ps As PrinterSettings = pg.PrinterSettings
    
        Dim p As PaperSize
        For Each p In ps.PaperSizes
          Console.WriteLine("Supports Paper Size: " + p.PaperName)
        Next
        Dim p1 As PaperSource
        For Each p1 In ps.PaperSources
          Console.WriteLine("Supports Paper Source: " + p1.SourceName)
        Next
    
    
    End Sub
End Module