GroupDocs.Viewer for .NET is a .NET document viewer and rendering API for C# that lets developers view and render 190+ document and image formats without installing Microsoft Office or other third-party software. It supports popular formats such as DOCX, XLSX, PPTX, PDF, CAD drawings, emails, archives, and images, and can render documents to HTML, PDF, PNG, or JPG.
Quick example
The following C# example shows how to render a DOCX document to HTML with embedded resources:
usingGroupDocs.Viewer;usingGroupDocs.Viewer.Options;// Render a DOCX file to HTML with embedded resourcesusing(Viewerviewer=newViewer("sample.docx")){viewer.View(HtmlViewOptions.ForEmbeddedResources("page_{0}.html"));}
sample.docx is the sample file used in this example. Click here to download it.
190+ Supported File Formats: Render Microsoft Office, PDF, HTML, CAD, email, archives, images, and more.
Multiple Rendering Formats: Render documents to HTML, PDF, PNG, and JPG.
Embedded or External Resources: Produce self-contained HTML pages or HTML with separate CSS, fonts, and images.
Document Format Detection: Automatically detects the format of input files.
Windows, Linux, and macOS: One NuGet package for .NET Framework 4.6.2 and later and .NET 6 and later.
Supported File Formats
GroupDocs.Viewer supports 190+ file formats across documents, spreadsheets, presentations, images, emails, CAD files, archives, and other commonly used file types. See the full list of supported formats.
The Developer Guide provides practical C# examples for working with GroupDocs.Viewer for .NET. Learn how to load documents, view and render files, retrieve document information, render specific pages, configure HTML/PDF/image output, and customize document rendering.
Technical Support
If you encounter an issue while using GroupDocs.Viewer for .NET or have a question about document rendering, visit the Technical Support page. It provides available support channels, troubleshooting resources, and ways to report issues or request assistance.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.
On this page
Ask AI
Ask anything about this page — the answer is based on its content.
Searching the docs and writing an answer…
Something went wrong while getting an answer. Please try again in a moment.