Detect CSV/TSV separator

Since 21.7 version GroupDocs.Viewer enables you to auto-detect separator for TSV/CSV files:

When DetectSeparator property is enabled (disabled by default) GroupDocs.Viewer examines your TSV/CSV files for the right separator.
This feature testing two separators:
, - by default
; - alternative separator

The following code snippet shows how to set default font name.

using (Viewer viewer = new Viewer(@"sample.csv"))
{
    HtmlViewOptions viewOptions = HtmlViewOptions.ForEmbeddedResources();
    viewOptions.SpreadsheetOptions.DetectSeparator = true;
    viewer.View(viewOptions);
}          

© Aspose Pty Ltd 2001-2022. All Rights Reserved.