HtmlSaveOptionsPicturesDirectoryImgSrcPath Property

Note: This API is now obsolete.

Gets or sets the pictures directory that will be used when referencing images in the HTML and Javascript.

Namespace:  GemBox.Spreadsheet
Assembly:  GemBox.Spreadsheet (in GemBox.Spreadsheet.dll) Version: 41.3.30.1032
Syntax
[ObsoleteAttribute("Use 'GemBox.Spreadsheet.HtmlSaveOptions.FilesDirectorySrcPath' property instead. For more info, see http://www.gemboxsoftware.com/spreadsheet/help/html/Obsolete_Members.htm#HtmlSaveOptionsPicturesDirectoryImgSrcPath.")]
public string PicturesDirectoryImgSrcPath { get; set; }

Property Value

Type: String
The pictures directory that will be used when referencing images in the HTML.
Remarks
If value is or empty string and HTML export is called with filePath parameter overload, value will be automatically set to htmlFileNameWithoutExtension + "-Images". 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