Spread for ASP.NET 8.0 Product Documentation
Saving to an HTML File

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:\\SpreadASP\\samples\\test.html");
VB
Copy Code
FpSpread1.Sheets(0).Cells(0,0).Value = 1
FpSpread1.Sheets(0).SaveHtml("C:\SpreadASP\samples\test.html")

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options | Documentation Feedback