Click or drag to resize
HtmlSaveOptionsFilesDirectoryPath Property
Gets or sets the physical directory where ExcelPictures and ExcelWorksheets files will be saved.

Namespace:  GemBox.Spreadsheet
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 41.3.30.1032
Syntax
public string FilesDirectoryPath { get; set; }

Property Value

Type: String
The physical directory where ExcelPictures and ExcelWorksheets files will be saved.
Remarks
If value is or Empty and HTML export is called with Save(String) or Save(String, SaveOptions) overload, value will be automatically set to htmlFileNameWithoutExtension + "_files". This directory will be created in the same location as HTML file.
Examples

Following code demonstrates how to export Excel file to HTML with specifying location where images will be saved.

ef.Save(
    "Data.html",
    new HtmlSaveOptions()
    {
        FilesDirectoryPath = Path.Combine("Art", "Images"),
        FilesDirectorySrcPath = "Art/Images"
    });
See Also