Folder navigation in archive files

When rendering contents of the archive to single-page HTML, Windows Explorer style like navigation is implemented, to use this you should set RenderSinglePage option to true:

using (Viewer viewer = new Viewer("sample.zip"))
{
    HtmlViewOptions viewOptions = HtmlViewOptions.ForEmbeddedResources();
    viewOptions.RenderSinglePage = true;

    viewer.View(viewOptions);
}

To see the contents of a particular folder, just click on it. To get back in-depth, click on the required folder in the header near the archive name.

Windows explorer navigation style

More resources

View Archive Files Online

Along with full-featured .NET library we provide simple but powerful free online Apps. View ZIP and TAR files online with GroupDocs Viewer App.

GitHub Examples

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