GrapeCity.Windows.SpreadSheet.Data Namespace > Worksheet Class : SaveHtml Method |
'Declaration Public Sub SaveHtml( _ ByVal stream As System.IO.Stream _ )
'Usage Dim instance As Worksheet Dim stream As System.IO.Stream instance.SaveHtml(stream)
public void SaveHtml( System.IO.Stream stream )
gcSpreadSheet1.Sheets[0].ShowGridLine = true; gcSpreadSheet1.Sheets[0].GridLineColor = Color.FromArgb(255, 150, 25, 199); gcSpreadSheet1.Sheets[0].Cells[0, 0].Text = "test"; SaveFileDialog saveFileDialog = new SaveFileDialog(); saveFileDialog.Filter = "Html File (.html)|*.html"; bool? useClick = saveFileDialog.ShowDialog(); if (useClick == true) { var stream = saveFileDialog.OpenFile(); gcSpreadSheet1.Sheets[0].SaveHtml(stream); stream.Dispose(); }
GcSpreadSheet1.Sheets(0).ShowGridLine = True GcSpreadSheet1.Sheets(0).GridLineColor = Color.FromArgb(255, 150, 25, 199) GcSpreadSheet1.Sheets(0).Cells(0, 0).Text = "test" Dim saveFileDialog = New SaveFileDialog() saveFileDialog.Filter = "Html File(.html)|*.html" Dim useClick As Boolean = saveFileDialog.ShowDialog() If (useClick = True) Then Dim stream = saveFileDialog.OpenFile() GcSpreadSheet1.Sheets(0).SaveHtml(stream) End If
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