Click or drag to resize
HtmlSaveOptionsFilesDirectorySrcPath Property
Gets or sets the relative directory that will be used when referencing ExcelPictures and ExcelWorksheets files in the HTML.

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

Property Value

Type: String
The relative directory that will be used when referencing ExcelPictures and ExcelWorksheets files in the HTML.
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".
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