Spread WPF Documentation
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 System.Integer, _
   ByVal column As System.Integer, _
   ByVal text As System.String, _
   ByVal rowDelimiter As System.String, _
   ByVal columnDelimiter As System.String, _
   ByVal cellDelimiter As System.String, _
   ByVal flags As TextFileOpenFlags _
) 
'Usage
 
Dim instance As Worksheet
Dim row As System.Integer
Dim column As System.Integer
Dim text As System.String
Dim rowDelimiter As System.String
Dim columnDelimiter As System.String
Dim cellDelimiter As System.String
Dim flags As TextFileOpenFlags
 
instance.SetCsv(row, column, text, rowDelimiter, columnDelimiter, cellDelimiter, flags)
public void SetCsv( 
   System.int row,
   System.int column,
   System.string text,
   System.string rowDelimiter,
   System.string columnDelimiter,
   System.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.Windows.SpreadSheet.Data.TextFileOpenFlags.None);
GcSpreadSheet1.Sheets(0).SetCsv(0, 0, "test", ChrW(13), ",", "")
'GcSpreadSheet1.Sheets(0).SetCsv(0, 0, "test", ChrW(13), ",", "", GrapeCity.Windows.SpreadSheet.Data.TextFileOpenFlags.None)
Requirements

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional (SP4), Windows XP (SP2), Windows 2008, Windows 2003 Server (SP1)

See Also

Reference

Worksheet Class
Worksheet Members
Overload List

 

 


Copyright © GrapeCity, inc. All rights reserved.