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)
속성 값
형식: 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 보안
- 직접 실행 호출자의 경우 완전히 신뢰합니다. 이 멤버는 부분적으로 신뢰할 수 있는 코드에서 사용할 수 없습니다. 자세한 내용은 부분 신뢰 코드에서 라이브러리 사용를 참조하세요.
참고 항목
참조
Microsoft.VisualBasic.PowerPacks.Printing 네임스페이스
기타 리소스
방법: PrintForm 구성 요소를 사용하여 폼 인쇄(Visual Basic)
방법: 폼의 클라이언트 영역 인쇄(Visual Basic)