Spread Silverlight Documentation
GetCsv(Int32,Int32,Int32,Int32,String,String,String) Method
Example 


The start row.
The start column.
The row count.
The column count.
The row delimiter that is appended to the end of the row.
The column delimiter that is appended to the end of the column.
The cell delimiter that is appended to the beginning and end of the cell.
Gets the CSV text from a range.
Syntax
'Declaration
 
Public Overloads Function GetCsv( _
   ByVal row As System.Integer, _
   ByVal column As System.Integer, _
   ByVal rowCount As System.Integer, _
   ByVal columnCount As System.Integer, _
   ByVal rowDelimiter As System.String, _
   ByVal columnDelimiter As System.String, _
   ByVal cellDelimiter As System.String _
) As System.String
'Usage
 
Dim instance As Worksheet
Dim row As System.Integer
Dim column As System.Integer
Dim rowCount As System.Integer
Dim columnCount As System.Integer
Dim rowDelimiter As System.String
Dim columnDelimiter As System.String
Dim cellDelimiter As System.String
Dim value As System.String
 
value = instance.GetCsv(row, column, rowCount, columnCount, rowDelimiter, columnDelimiter, cellDelimiter)
public System.string GetCsv( 
   System.int row,
   System.int column,
   System.int rowCount,
   System.int columnCount,
   System.string rowDelimiter,
   System.string columnDelimiter,
   System.string cellDelimiter
)

Parameters

row
The start row.
column
The start column.
rowCount
The row count.
columnCount
The column count.
rowDelimiter
The row delimiter that is appended to the end of the row.
columnDelimiter
The column delimiter that is appended to the end of the column.
cellDelimiter
The cell delimiter that is appended to the beginning and end of the cell.
Example
This example uses the GetCsv method.
listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetCsv(0,0,2,2, "\n", ",", "").ToString());
//listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetCsv(0, 0, 2, 2, "\n", ",", "", false).ToString());
//listBox1.Items.Add(gcSpreadSheet1.Sheets[0].GetCsv(0, 0, 2, 2, "\n", ",", "", false, GrapeCity.Windows.SpreadSheet.Data.TextFileSaveFlags.AsViewed).ToString());
ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetCsv(0, 0, 2, 2, ChrW(10), ",", "").ToString())
'ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetCsv(0, 0, 2, 2, ChrW(10), ",", "", False).ToString())
'ListBox1.Items.Add(GcSpreadSheet1.Sheets(0).GetCsv(0, 0, 2, 2, ChrW(10), ",", "", False, GrapeCity.Windows.SpreadSheet.Data.TextFileSaveFlags.AsViewed).ToString())
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

Worksheet Class
Worksheet Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.