Class LowCodeHtmlSaveOptions
Contents
[
Hide
]LowCodeHtmlSaveOptions class
Options for saving html in low code way.
public class LowCodeHtmlSaveOptions : LowCodeSaveOptions
Constructors
Name | Description |
---|---|
LowCodeHtmlSaveOptions() | The default constructor. |
Properties
Name | Description |
---|---|
HtmlOptions { get; set; } | The general options for saving html. |
OutputFile { get; set; } | Gets and sets the file(with path if needed) for saving the generated data. When setting this property with value other than null or empty string, OutputStream will be ignored.(Inherited from LowCodeSaveOptions .) |
OutputStream { get; set; } | Gets and sets the Stream for writing the generated data to. When setting this property with value other than null, OutputFile will be ignored.(Inherited from LowCodeSaveOptions .) |
override SaveFormat { get; set; } | Gets and sets the format of spreadsheet. |
Examples
namespace AsposeCellsExamples
{
using Aspose.Cells;
using Aspose.Cells.LowCode;
using System;
public class LowCodeClassLowCodeHtmlSaveOptionsDemo
{
public static void Run()
{
// Create a new workbook with sample data
Workbook workbook = new Workbook();
Worksheet worksheet = workbook.Worksheets[0];
worksheet.Cells["A1"].PutValue("Product");
worksheet.Cells["B1"].PutValue("Price");
worksheet.Cells["A2"].PutValue("Widget");
worksheet.Cells["B2"].PutValue(29.99);
// Create and configure LowCodeHtmlSaveOptions
LowCodeHtmlSaveOptions saveOptions = new LowCodeHtmlSaveOptions
{
HtmlOptions = new HtmlSaveOptions()
{
ExportWorksheetCSSSeparately = false,
ExportImagesAsBase64 = true
}
};
// Save workbook with configured HTML options using the save options parameter
workbook.Save("LowCodeHtmlExport.html", saveOptions.HtmlOptions);
Console.WriteLine("HTML file saved successfully with low code options.");
}
}
}
See Also
- class LowCodeSaveOptions
- namespace Aspose.Cells.LowCode
- assembly Aspose.Cells