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.
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:
- GroupDocs.Viewer for .NET examples, plugins, and showcase
- GroupDocs.Viewer for Java examples, plugins, and showcase
- Document Viewer for .NET MVC UI Example
- Document Viewer for .NET App WebForms UI Modern Example
- Document Viewer for Java App Dropwizard UI Modern Example
- Document Viewer for Java Spring UI Example