Separator detection

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;

More resources

GitHub Examples

You may easily run the code above and see the feature in action in our GitHub examples:

Free Online App

Along with full-featured .NET library we provide simple but powerful free Apps. You are welcome to view Word, PDF, Excel, PowerPoint documents with free to use online GroupDocs Viewer App.