HtmlSaveOptionsPicturesDirectoryPath Property

Note: This API is now obsolete.

Gets or sets the directory where ExcelPictures will be physically saved.

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

Property Value

Type: String
The directory where ExcelPictures will be physically saved.
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