PrinterNameプロパティ
帳票を出力するプリンタ名を指定,または取得します。
対象
Application
解説
PrinterNameプロパティを指定しないで,DocumentオブジェクトのPrint/PrintOutメソッドを実行すると,Windowsで通常使うプリンタとして指定してあるプリンタに印刷されます。
データ型
String
記述例
帳票を出力するプリンタ名を指定します。
rpt.Application.PrinterName = "Printer name"