Spread Silverlight Documentation
RowEnd Property (PrintInfo)
Example 


GrapeCity.Windows.SpreadSheet.Data Namespace > PrintInfo Class : RowEnd Property
Gets or sets the last row to print when printing a cell range.
Syntax
'Declaration
 
<System.ComponentModel.DefaultValueAttribute()>
Public Property RowEnd As System.Integer
'Usage
 
Dim instance As PrintInfo
Dim value As System.Integer
 
instance.RowEnd = value
 
value = instance.RowEnd
[System.ComponentModel.DefaultValue()]
public System.int RowEnd {get; set;}

Property Value

The row index of the last row to print in a cell range.
Example
This example uses the RowEnd property.
SaveFileDialog saveFileDialog = new SaveFileDialog();
saveFileDialog.Filter = "PDF File (.pdf)|*.pdf";
bool? useClick = saveFileDialog.ShowDialog();
if (useClick == true)
{
    var stream = saveFileDialog.OpenFile();

GrapeCity.Windows.SpreadSheet.Data.PrintInfo printset = new GrapeCity.Windows.SpreadSheet.Data.PrintInfo();
printset.RowStart = 0;
printset.RowEnd = 45;
gcSpreadSheet1.Sheets[0].PrintInfo = printset;

gcSpreadSheet1.SavePDF(stream, 0);
 stream.Dispose();
}
Dim saveFileDialog = New SaveFileDialog()
saveFileDialog.Filter = "PDF File(.pdf)|*.pdf"
Dim useClick As Boolean = saveFileDialog.ShowDialog()
If (useClick = True) Then
Dim stream = saveFileDialog.OpenFile()

Dim printset As New GrapeCity.Windows.SpreadSheet.Data.PrintInfo()
printset.RowStart = 0
printset.RowEnd = 45
GcSpreadSheet1.Sheets(0).PrintInfo = printset
GcSpreadSheet1.SavePDF(stream, 0)
See Also

Reference

PrintInfo Class
PrintInfo Members