다음을 통해 공유


PrintForm.DocumentName 속성

문서 인쇄 중에 인쇄 상태 대화 상자 또는 프린터 큐에 표시할 문서 이름을 가져오거나 설정합니다.

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

구문

‘선언
<BrowsableAttribute(True)> _
Public Property DocumentName As String
[BrowsableAttribute(true)]
public string DocumentName { get; set; }
[BrowsableAttribute(true)]
public:
property String^ DocumentName {
    String^ get ();
    void set (String^ value);
}
[<BrowsableAttribute(true)>]
member DocumentName : string with get, set
function get DocumentName () : String
function set DocumentName (value : String)

속성 값

형식: System.String
A String 문서를 인쇄 하는 동안 표시할 수 있습니다.기본값은 "문서"입니다.

설명

DocumentName 속성은 인쇄할 파일을 지정하지 않습니다.호출 하 여 결과 지정 하는 대신, Print 메서드가 있습니다.

예제

다음 예제에서는 사용 하는 방법을 보여 줍니다 있는 DocumentName 문서 이름을 인쇄 하는 동안 표시 하는 속성입니다.이 예제에서는 사용자가 있어야는 PrintForm 폼에서 PrintForm1 라는 구성 요소가 있습니다.

' Print to a printer. 
PrintForm1.PrintAction = Printing.PrintAction.PrintToPrinter
' Assign a document name.
PrintForm1.DocumentName = "Quarterly Results Graph"
' Send to the printer.
PrintForm1.Print()

.NET Framework 보안

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

참고 항목

참조

PrintForm 클래스

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

기타 리소스

PrintForm 구성 요소(Visual Basic)

방법: PrintForm 구성 요소를 사용하여 폼 인쇄(Visual Basic)

방법: 폼의 클라이언트 영역 인쇄(Visual Basic)

방법: 폼의 클라이언트 영역 및 비클라이언트 영역 인쇄(Visual Basic)

방법: 스크롤 가능 폼 인쇄(Visual Basic)

PrintForm 구성 요소를 참조하는 응용 프로그램 배포(Visual Basic)