Spread for ASP.NET 9.0 Product Documentation > Developer's Guide > Managing File Operations > Saving Data to a File > Saving to an HTML File |
You can save the data in a sheet to an HTML file or stream.
Use the SheetView's SaveHtml method, specifying the path and file name of the file to save or the Stream object to save.
This example code saves the data to an HTML file.
C# |
Copy Code
|
---|---|
FpSpread1.Sheets[0].Cells[0, 0].Value = 1;
FpSpread1.Sheets[0].SaveHtml("C:\\SpreadASP\\samples\\test.html");
|
VB |
Copy Code
|
---|---|
FpSpread1.Sheets(0).Cells(0,0).Value = 1
FpSpread1.Sheets(0).SaveHtml("C:\SpreadASP\samples\test.html")
|