Spread Windows Forms 11.0 Product Documentation
BestFitWithSpan Property
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > PrintInfo Class : BestFitWithSpan Property
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)
See Also

Reference

PrintInfo Class
PrintInfo Members