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:
[ObsoleteAttribute("Use 'GemBox.Spreadsheet.HtmlSaveOptions.FilesDirectoryPath' property instead. For more info, see")]
public string PicturesDirectoryPath { get; set; }

Property Value

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

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

    new HtmlSaveOptions()
        FilesDirectoryPath = Path.Combine("Art", "Images"),
        FilesDirectorySrcPath = "Art/Images"
See Also