# Saving to an HTML File

Learn how you can save the data in a sheet to an HTML file or stream. Learn more in documentation.

## Content

You can save the data in a sheet to an HTML file or stream.

## Using Code

Use the SheetView's [SaveHtml](/spreadnet/api/latest/online-asp/FarPoint.Web.Spread/FarPoint.Web.Spread.SheetView.SaveHtml.html) method, specifying the path and file name of the file to save or the Stream object to save.

## Example

This example code saves the data to an HTML file.

```csharp
FpSpread1.Sheets[0].Cells[0, 0].Value = 1;
FpSpread1.Sheets[0].SaveHtml("C:\\SpreadASP\\samples\\test.html");
```

```vbnet
FpSpread1.Sheets(0).Cells(0,0).Value = 1
FpSpread1.Sheets(0).SaveHtml("C:\SpreadASP\samples\test.html")
```