Spread Windows Forms 9.0 Product Documentation
BestFitWithSpan Property
Example 


Gets or sets whether to ignore spans when calculating best fit rows and columns.
Syntax
'Declaration
 
Public Property BestFitWithSpan As Boolean
'Usage
 
Dim instance As PrintInfo
Dim value As Boolean
 
instance.BestFitWithSpan = value
 
value = instance.BestFitWithSpan
public bool BestFitWithSpan {get; set;}
Example
This example uses the BestFitWithSpan property.
fpSpread1.Sheets[0].AddSpanCell(1, 1, 2, 2);
fpSpread1.Sheets[0].Cells[1, 1].Text = "Print";
FarPoint.Win.Spread.PrintInfo printset = new FarPoint.Win.Spread.PrintInfo();
printset.BestFitWithSpan = true;
printset.Preview = true;
fpSpread1.Sheets[0].PrintInfo = printset;
fpSpread1.PrintSheet(0);
FpSpread1.Sheets(0).AddSpanCell(1, 1, 2, 2)
FpSpread1.Sheets(0).Cells(1, 1).Text = "Print"
Dim printset As New FarPoint.Win.Spread.PrintInfo()
printset.BestFitWithSpan = True
printset.Preview = True
FpSpread1.Sheets(0).PrintInfo = printset
FpSpread1.PrintSheet(0)
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

PrintInfo Class
PrintInfo Members

 

 


Copyright © GrapeCity, inc. All rights reserved.