GroupDocs.Viewer for .NET 20.6 Release Notes

Major Features

There are 19 features, improvements, and bug-fixes in this release, most notable are:

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
VIEWERNET-2485Get sheet names from an Excel fileFeature
VIEWERNET-2222Show spreadsheet column headings and row numbersFeature
VIEWERNET-2474Support file format detection for passed streamFeature
VIEWERNET-2468Improved rendering Outlook files (pst, ost) to HTMLImprovement
VIEWERNET-2434High RAM consumption issue when rendering a large text fileBug
VIEWERNET-2466Rendering Archive to PDF does not show certain charactersBug
VIEWERNET-2473Exception is thrown when rendering SVG fileBug
VIEWERNET-2476Exception: A generic error occurred in GDI+Bug
VIEWERNET-2480“Image export failed” exception when rendering WMF fileBug
VIEWERNET-2494Input string was not in a correct format" exception when rendering XLSXBug
VIEWERNET-2495“A generic error occurred in GDI+” exception occurs when rendering VSDX fileBug
VIEWERNET-2496“Parameter is not valid” exception when rendering VSDX fileBug
VIEWERNET-2497“Unable to read beyond the end of the stream” exception when rendering ICO fileBug
VIEWERNET-2503“File is corrupted or damaged” exception when rendring CSV fileBug
VIEWERNET-2504“A generic error occurred in GDI+” exception occurs when rendering ICO fileBug
VIEWERNET-2505Exception: Invalid start row index on XLSB fileBug
VIEWERNET-2529HTML representation generating stuckBug
VIEWERNET-2533The row index should not be inside the pivottable reportBug
VIEWERNET-2532Not null and not empty string is expectedBug

Public API and Backward Incompatible Changes

GroupDocs.Viewer.FileType

Two new methods added to the FileType class. The more details and use cases can be found in How to determine file type documentation article.

/// <summary>Detects file type by reading the file signature.</summary>
/// <param name="stream">The file stream.</param>
/// <returns>Returns file type in case it was detected successfully otherwise returns default <see cref="F:GroupDocs.Viewer.FileType.Unknown" /> file type.</returns>
public static FileType FromStream(Stream stream)

/// <summary>Detects file type by reading the file signature.</summary>
/// <param name="stream">The file stream.</param>
/// <param name="password">The password to open the file.</param>
/// <returns>Returns file type in case it was detected successfully otherwise returns default <see cref="F:GroupDocs.Viewer.FileType.Unknown" /> file type.</returns>
public static FileType FromStream(Stream stream, string password)

GroupDocs.Viewer.Results.Page

Three constructors have been added to the Page class to support retrieving worksheet or page names that is described in How to get the names of the worksheets.

/// <summary>
/// Initializes new instance of <see cref="Page"/> class.
/// </summary>
/// <param name="number">The page number.</param>
/// <param name="name">The worksheet or page name.</param>
/// <param name="visible">The page visibility indicator.</param>
/// <exception cref="System.ArgumentException">Thrown when <paramref name="number"/> is less or equal to zero.</exception>
public Page(int number, string name, bool visible)

/// <summary>
/// Initializes new instance of <see cref="Page"/> class.
/// </summary>
/// <param name="number">The page number.</param>
/// <param name="name">The worksheet or page name.</param>
/// <param name="visible">The page visibility indicator.</param>
/// <param name="width">The width of the page in pixels when rendering as JPG or PNG.</param>
/// <param name="height">The height of the page in pixels when rendering as JPG or PNG.</param>
/// <exception cref="System.ArgumentException">Thrown when <paramref name="number"/> is less or equal to zero.</exception>
/// <exception cref="System.ArgumentException">Thrown when <paramref name="width"/> is less or equal to zero.</exception>
/// <exception cref="System.ArgumentException">Thrown when <paramref name="height"/> is less or equal to zero.</exception>
public Page(int number, string name, bool visible, int width, int height)

/// <summary>
/// Initializes new instance of <see cref="Page"/> class.
/// </summary>
/// <param name="number">The page number.</param>
/// <param name="name">The worksheet or page name.</param>
/// <param name="visible">The page visibility indicator.</param>
/// <param name="width">The width of the page in pixels when rendering as JPG or PNG.</param>
/// <param name="height">The height of the page in pixels when rendering as JPG or PNG.</param>
/// <param name="lines">The lines contained by the page when rendering as JPG or PNG with enabled Text Extraction.</param>
/// <exception cref="System.ArgumentException">Thrown when <paramref name="number"/> is less or equal to zero.</exception>
/// <exception cref="System.ArgumentException">Thrown when <paramref name="width"/> is less or equal to zero.</exception>
/// <exception cref="System.ArgumentException">Thrown when <paramref name="height"/> is less or equal to zero.</exception>
/// <exception cref="System.ArgumentNullException">Thrown when <paramref name="lines"/> is null.</exception>
public Page(int number, string name, bool visible, int width, int height, IList<Line> lines)