Spread for Windows Forms 5.0
Dim printset As New FarPoint.Win.Spread.PrintInfo()
Dim printmar As New FarPoint.Win.Spread.PrintMargin
printset.PrintType = FarPoint.Win.Spread.PrintType.CellRange
printmar.Left = 10
printmar.Right = 10
printmar.Top = 20
printmar.Bottom = 20
printset.Centering = FarPoint.Win.Spread.Centering.Horizontal
printset.FirstPageNumber = 1
printset.Margin = printmar
printset.ShowBorder = False
printset.ShowColor = False
printset.ShowColumnHeader = FarPoint.Win.Spread.PrintHeader.Hide
printset.ShowRowHeader = FarPoint.Win.Spread.PrintHeader.Hide
printset.ShowGrid = True
printset.ShowShadows = True
printset.ZoomFactor = 0
printset.ColStart = 0
printset.ColEnd = 11
printset.RowStart = 1
printset.RowEnd = 0
printset.PageEnd = 3
printset.PageStart = 1
FpSpread1.Sheets(0).PrintInfo = printset
'打印表单。
printset.Preview = True
'PrintDialog1.ShowDialog()
FpSpread1.PrintSheet(0)
这" printset.PageEnd = 3“, " printset.PageStart = 1“两行设置无效,该如何改? |
|