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


印刷するページ範囲の先頭のページを取得または設定します。
構文
'Declaration
 
Public Property PageStart As Integer
'使用法
 
Dim instance As PrintInfo
Dim value As Integer
 
instance.PageStart = value
 
value = instance.PageStart
public int PageStart {get; set;}

プロパティ値

最初のページの番号を表す Integer
解説

PrintTypeプロパティをPrintType.PageRangeに設定している場合は、PageStartプロパティとPageEndプロパティを設定して、印刷するページの範囲を指定します。

このプロパティは、PrintTypeプロパティがPrintType.PageRangeに設定されていない場合は効果がありません。

次のサンプルコードは、シートの一部のみを印刷するよう指定する方法を示します。
// Typically, not all of these settings are used together but are included here for illustration purposes

// Create the printer settings object
FarPoint.Win.Spread.PrintInfo printset = new FarPoint.Win.Spread.PrintInfo(); 

// Allow printing of only 20 columns and 20 rows of cells
printset.ColStart = 1;
printset.ColEnd = 20;
printset.RowStart = 1;
printset.RowEnd = 20;
printset.PrintType = FarPoint.Win.Spread.PrintType.CellRange;

// Allow printing of only five pages
printset.PageStart = 1;
printset.PageEnd = 5;

// Allow printing of the cell notes together at the end
printset.PrintNotes = FarPoint.Win.Spread.PrintNotes.AtEnd;

// Allow printing of the shapes
printset.PrintShapes = true;

// Allow printing of only rows and columns up to the last ones with data 
printset.UseMax = True;

// Assign the printer settings to the sheet and print it
fpSpread1.Sheets[0].PrintInfo = printset; 
fpSpread1.PrintSheet(0);
' Typically, not all of these settings are used together but are included here for illustration purposes

' Create the printer settings object
Dim printset As New FarPoint.Win.Spread.PrintInfo

' Allow printing of only 20 columns and 20 rows of cells
printset.ColEnd = 20
printset.ColStart = 1
printset.RowStart = 1
printset.RowEnd = 20
printset.PrintType = FarPoint.Win.Spread.PrintType.CellRange

' Allow printing of only five pages
printset.PageStart = 1
printset.PageEnd = 5

' Allow printing of the cell notes together at the end
printset.PrintNotes = FarPoint.Win.Spread.PrintNotes.AtEnd

' Allow printing of the shapes
printset.PrintShapes = True

' Allow printing of only rows and columns up to the last ones with data 
printset.UseMax = true

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

PrintInfo クラス
PrintInfo メンバ
PageEnd プロパティ
PrintType プロパティ

開発者ガイド

特定のページの印刷

 

 


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