I
← Back to Blog••2 min read

Integrating Seamless Document Viewing into Your Blazor Applications with Doconut

Blazor has revolutionized .NET web development, enabling rich, interactive UIs with C# both on the server and client-side (WebAssembly). As you build sophisticated Blazor applications, the need to display documents – reports, user uploads, reference materials – directly within the UI often arises. Relying on download links disrupts the fluid, single-page application feel that Blazor excels at.

Doconut document viewer illustration
Doconut document viewer illustration

That’s where Doconut comes in — a self-hosted document viewer built for .NET developers. Doconut integrates with Blazor Server and displays server-rendered documents through its browser viewer.

🧠 Why Use Doconut in Blazor?

  • Maintain SPA Flow: Doconut renders documents directly inside your pages. No new tabs, no external viewers.
  • Native to .NET: Designed for seamless integration in ASP.NET Core and Blazor. One consistent stack.
  • Multi-format Support: View PDFs, DOCX, XLSX, PPTX, HTML, images, emails, and even CAD — no third-party plugins required.
  • Responsive UI: Mobile-friendly viewing experience that matches your app's look and feel.

You can learn more about the supported file types on doconut.com.

🧩 How to Integrate Doconut in Blazor

For a Blazor Server application, Doconut renders documents on the .NET server and displays them through its HTML5/JavaScript viewer.

How To: Install and Use Doconut from NuGet.org

Integrating Doconut into your .NET project is easy thanks to its availability on NuGet.org.

1. Find the Package on NuGet

Visit the official Doconut profile: 👉 https://www.nuget.org/profiles/doconut.com

There you'll find available packages.

2. Install via NuGet Console or CLI

In Visual Studio or using the .NET CLI, install the main package.

#dotNET#Word Viewer#Document Viewer#Blazor Server