GrapeCity.Xaml.SpreadSheet.Data
SetCsv(Int32,Int32,String,String,String,String,TextFileOpenFlags) Method
Example 


The start row.
The start column.
The CSV text.
The row delimiter.
The column delimiter.
The cell delimiter.
The import flags.
Sets CSV text in the sheet.
Syntax
'Declaration
 
Public Overloads Sub SetCsv( _
   ByVal row As Integer, _
   ByVal column As Integer, _
   ByVal text As String, _
   ByVal rowDelimiter As String, _
   ByVal columnDelimiter As String, _
   ByVal cellDelimiter As String, _
   ByVal flags As TextFileOpenFlags _
) 
'Usage
 
Dim instance As Worksheet
Dim row As Integer
Dim column As Integer
Dim text As String
Dim rowDelimiter As String
Dim columnDelimiter As String
Dim cellDelimiter As String
Dim flags As TextFileOpenFlags
 
instance.SetCsv(row, column, text, rowDelimiter, columnDelimiter, cellDelimiter, flags)
public void SetCsv( 
   int row,
   int column,
   string text,
   string rowDelimiter,
   string columnDelimiter,
   string cellDelimiter,
   TextFileOpenFlags flags
)

Parameters

row
The start row.
column
The start column.
text
The CSV text.
rowDelimiter
The row delimiter.
columnDelimiter
The column delimiter.
cellDelimiter
The cell delimiter.
flags
The import flags.
Example
This example uses the SetCsv method.
gcSpreadSheet1.Sheets[0].SetCsv(0, 0, "test", "/r", ",", "");
//gcSpreadSheet1.Sheets[0].SetCsv(0, 0, "Testing", "/r", ",", "", GrapeCity.Xaml.SpreadSheet.Data.TextFileOpenFlags.None);
GcSpreadSheet1.Sheets(0).SetCsv(0, 0, "test", ChrW(13), ",", "")
GcSpreadSheet1.Sheets(0).SetCsv(0, 0, "test", ChrW(13), ",", "", GrapeCity.Xaml.SpreadSheet.Data.TextFileOpenFlags.None)
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

Worksheet Class
Worksheet Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options