다음을 통해 공유


Printer.PaperBin 속성

기본 용지함프린터의 인쇄 작업 중 용지 공급 됩니다 나타내는 값을 가져오거나 설정 합니다.

네임스페이스:  Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6
어셈블리:  Microsoft.VisualBasic.PowerPacks.Vs(Microsoft.VisualBasic.PowerPacks.Vs.dll)

구문

‘선언
Public Property PaperBin As Short
public short PaperBin { get; set; }
public:
property short PaperBin {
    short get ();
    void set (short value);
}
member PaperBin : int16 with get, set
function get PaperBin () : short
function set PaperBin (value : short)

속성 값

형식: System.Int16
Short 을 반환합니다.

설명

따라 용지함 옵션을 일부 프린터에서 사용할 수 없습니다.이러한 옵션에 대 한 자세한 내용은프린터설명서를 확인 합니다.

호출한 후이속성을 설정 하는 경우는 Print, Circle, Line, 또는 PSet 메서드는 새 페이지에 런타임예외발생 합니다.

다음 표에 PrinterObjectConstants유효한값은 PaperBin속성입니다.

상수

설명

vbPRBNUpper

1

상단 용지함의 용지를 사용 합니다.

vbPRBNLower

2

하단 용지함의 용지를 사용 합니다.

vbPRBNMiddle

3

가운데 용지함의 용지를 사용 합니다.

vbPRBNManual

4

용지를 직접 삽입할 때까지 기다립니다.

vbPRBNEnvelope

5

봉투 공급 장치의 봉투 사용 합니다.

vbPRBNEnvManual

6

봉투 공급 장치의 봉투 사용 하지만 수동 급지 대기.

vbPRBNAuto

7

현재 기본 용지함의 용지를 사용 합니다.이 옵션이 기본값입니다.

vbPRBNTractor

8

트랙터 공급 장치에서 공급 되는 용지를 사용 합니다.

vbPRBNSmallFmt

9

소형 용지 공급 장치의 용지 사용

vbPRBNLargeFmt

10

대형 용지함의 용지를 사용 합니다.

vbPRBNLargeCapacity

11

대용량 공급 장치의 용지 사용

vbPRBNCassette

14

연결 된 카세트 카트리지의 용지를에서 사용 합니다.

[!참고]

기능을 수행 하 고 개체의 Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6네임스페이스제공 됩니다 사용에 대 한Visual Basic6.0 업그레이드 도구 사용 하 여 Visual Basic. 이러한 함수와 개체에서 제공하는 대부분의 기능은 .NET Framework의 다른 네임스페이스에서 얻을 수 있는 기능과 동일하므로이러한 함수와 개체는 Visual Basic 6.0 코드 모델이 .NET Framework 구현과 크게 다른 경우에만 사용해야 합니다.

예제

다음 예제에서는 검색 하는 PaperBin속성값.

Dim Printer As New Printer
Printer.PrintAction = Printing.PrintAction.PrintToPreview
Select Case Printer.PaperBin
    Case vbPRBNUpper
        Printer.Print("Using the upper bin")
    Case vbPRBNLower
        Printer.Print("Using the lower bin")
    Case vbPRBNMiddle
        Printer.Print("Using the middle bin")
    Case vbPRBNManual
        Printer.Print("Insert a sheet of paper")
    Case vbPRBNEnvelope
        Printer.Print("Using the envelope feeder")
    Case vbPRBNEnvManual
        Printer.Print("Insert an envelope")
    Case vbPRBNTractor
        Printer.Print("Using the tractor feeder")
    Case vbPRBNSmallFmt
        Printer.Print("Using the small paper feeder")
    Case vbPRBNLargeFmt
        Printer.Print("Using the large paper bin")
    Case vbPRBNLargeCapacity
        Printer.Print("Using the large capacity feeder")
    Case vbPRBNCassette
        Printer.Print("Using the attached cassette cartridge")
    Case Else
        Printer.Print("Using the default paper bin")
End Select
Printer.EndDoc()

.NET Framework 보안

  • 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용을 참조하십시오.

참고 항목

참조

Printer 클래스

Microsoft.VisualBasic.PowerPacks.Printing.Compatibility.VB6 네임스페이스

기타 리소스

프린터 호환성 라이브러리

방법: 프린터 호환성 라이브러리를 사용하여 업그레이드 오류 수정(Visual Basic)

프린터 호환성 라이브러리를 참조하는 응용 프로그램 배포