FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > PrintInfo クラス : ShowPrintDialog プロパティ |
'Declaration Public Property ShowPrintDialog As Boolean
'使用法 Dim instance As PrintInfo Dim value As Boolean instance.ShowPrintDialog = value value = instance.ShowPrintDialog
public bool ShowPrintDialog {get; set;}
このプロパティをTrueに設定すると、印刷ジョブが送信される前に印刷ダイアログが表示され、ユーザーはこのダイアログで印刷方法をカスタマイズできます。
// Define the printer settings FarPoint.Win.Spread.PrintInfo printset = new FarPoint.Win.Spread.PrintInfo(); printset.ShowPrintDialog = true; printset.AbortMessage = "Do you want to cancel the printing?"; printset.Preview = true; // 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.ShowPrintDialog = True printset.AbortMessage = "Do you want to cancel the printing?" printset.Preview = True ' Assign the printer settings to the sheet and print it FpSpread1.Sheets(0).PrintInfo = printset FpSpread1.PrintSheet(0)