PowerTools SPREAD for Windows Forms 10.0J
Printer プロパティ


印刷に使用するプリンタの名前を取得または設定します。
構文
'Declaration
 
Public Property Printer As String
'使用法
 
Dim instance As PrintInfo
Dim value As String
 
instance.Printer = value
 
value = instance.Printer
public string Printer {get; set;}

プロパティ値

プリンタの名前を含む String
次のサンプルコードは、印刷ジョブ設定の定義方法を示します。
// Define the printer settings
FarPoint.Win.Spread.PrintInfo printset = new FarPoint.Win.Spread.PrintInfo();
printset.JobName = "New Print Job";
printset.PageOrder = FarPoint.Win.Spread.PrintPageOrder.Auto;
printset.PaperSize = new System.Drawing.Printing.PaperSize("Letter", 600, 300);
printset.PaperSource = new System.Drawing.Printing.PrinterSettings.PaperSources[0].SourceName;
printset.Printer = "HP6L";

// Assign the printer settings to the sheet and print it
fpSpread1.Sheets[0].PrintInfo = printset;
fpSpread1.PrintSheet(0);
' Define the printer settings
Dim printset As New FarPoint.Win.Spread.PrintInfo()
printset.JobName = "New Print Job"
printset.PageOrder = FarPoint.Win.Spread.PrintPageOrder.Auto
printset.PaperSize = New System.Drawing.Printing.PaperSize("Letter", 600, 300)
printset.PaperSource = New System.Drawing.Printing.PrinterSettings.PaperSources(0).SourceName
printset.Printer = "HP6L"

' Assign the printer settings to the sheet and print it
FpSpread1.Sheets(0).PrintInfo = printset
FpSpread1.PrintSheet(0)
参照

PrintInfo クラス
PrintInfo メンバ

開発者ガイド

印刷ジョブ設定のカスタマイズ

 

 


© 2004-2017, GrapeCity inc. All rights reserved.