Spread WinForms 15
FarPoint.Excel Assembly / FarPoint.Excel Namespace / WorkbookSynchronizer Class / ToObject Method
Spread
Workbook file
Excel save flags
Memory folder
The zip out put stream for writing on the fly directly
The collection which hold the name of files that would be writing on the fly directly


In This Topic
ToObject Method (WorkbookSynchronizer)
In This Topic
Synchronizes Spread to Excel XML.
Syntax
'Declaration
 
Public Shared Function ToObject( _
   ByVal spread As IExcelWrite, _
   ByVal workbookFile As XFile, _
   ByVal saveFlags As ExcelSaveFlags, _
   ByVal mFolder As ZipHelper.MemoryFolder, _
   ByVal zipOutputStream As ICSharpCode.SharpZipLib.Zip.ZipOutputStream, _
   ByVal directlyWritingFilenames As ICollection(Of String) _
) As CT_Workbook
 
'Usage
 
Dim spread As IExcelWrite
Dim workbookFile As XFile
Dim saveFlags As ExcelSaveFlags
Dim mFolder As ZipHelper.MemoryFolder
Dim zipOutputStream As ICSharpCode.SharpZipLib.Zip.ZipOutputStream
Dim directlyWritingFilenames As ICollection(Of String)
Dim value As CT_Workbook
 
value = WorkbookSynchronizer.ToObject(spread, workbookFile, saveFlags, mFolder, zipOutputStream, directlyWritingFilenames)

Parameters

spread
Spread
workbookFile
Workbook file
saveFlags
Excel save flags
mFolder
Memory folder
zipOutputStream
The zip out put stream for writing on the fly directly
directlyWritingFilenames
The collection which hold the name of files that would be writing on the fly directly

Return Value

instance of CT_Workbook
See Also