FarPoint.Web.Spread Assembly > FarPoint.Web.Spread Namespace > SheetView Class > Save Method : Save(Stream,Boolean) Method |
'Declaration Public Overloads Function Save( _ ByVal stream As Stream, _ ByVal dataOnly As Boolean _ ) As Boolean
System.IO.Stream streamXMLDOSheet; System.IO.Stream streamXMLSheet; string StreamNameXMLSheet = "C:\\XML\\StreamXMLSheet.xml"; streamXMLSheet = File.Open(StreamNameXMLSheet, FileMode.Create); FpSpread1.ActiveSheetView.Save(streamXMLSheet, false); streamXMLSheet.Close(); streamXMLSheet = null; string StreamNameXMLDOSheet = "C:\\XML\\StreamXMLDataOnlySheet.xml"; streamXMLDOSheet = File.Open(StreamNameXMLDOSheet, FileMode.Create); FpSpread1.ActiveSheetView.Save(streamXMLDOSheet, true); streamXMLDOSheet.Close(); streamXMLDOSheet = null;
Dim streamXMLDOSheet As System.IO.Stream Dim streamXMLSheet As System.IO.Stream Dim StreamNameXMLSheet As String = "C:\XML\StreamXMLSheet.xml" streamXMLSheet = File.Open(StreamNameXMLSheet, FileMode.Create) FpSpread1.ActiveSheetView.Save(streamXMLSheet, False) streamXMLSheet.Close() streamXMLSheet = Nothing Dim StreamNameXMLDOSheet As String = "C:\XML\StreamXMLDataOnlySheet.xml" streamXMLDOSheet = File.Open(StreamNameXMLDOSheet, FileMode.Create) FpSpread1.ActiveSheetView.Save(streamXMLDOSheet, True) streamXMLDOSheet.Close() streamXMLDOSheet = Nothing
Target Platforms: Windows 7, Windows 8, Windows 10, Windows Vista, Windows Server 2003, Windows Server 2008, Windows Server 2012, Windows XP Professional