Spread Silverlight Documentation
RowEnd Property (PrintInfo)
Example 


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)
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

PrintInfo Class
PrintInfo Members

 

 


Copyright © GrapeCity, inc. All rights reserved.