Spread ASP.NET 16
Spread for ASP.NET 16 Product Documentation / Developer's Guide / Managing File Operations / Saving Data to a File / Saving to an HTML File
In This Topic
    Saving to an HTML File
    In This Topic

    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")