Spread for ASP.NET 7.0 Product Documentation
Saving to an HTML File
Support Options
Spread for ASP.NET 7.0 Product Documentation > Developer's Guide > Managing File Operations > Saving Data to a File > Saving to an HTML File

Glossary Item Box

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

Using Code

Use the SheetView's SaveHtml 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.

C# Copy Code
FpSpread1.Sheets[0].Cells[0, 0].Value = 1;
FpSpread1.Sheets[0].SaveHtml("C:\\SpreadASP7\\samples\\test.html");
VB Copy Code
FpSpread1.Sheets(0).Cells(0,0).Value = 1
FpSpread1.Sheets(0).SaveHtml("C:\SpreadASP7\samples\est.html")
© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.