Spire.OfficeViewer 7.1.0

.NET Framework 2.0
Install-Package Spire.OfficeViewer -Version 7.1.0
dotnet add package Spire.OfficeViewer --version 7.1.0
<PackageReference Include="Spire.OfficeViewer" Version="7.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Spire.OfficeViewer --version 7.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Spire.OfficeViewer, 7.1.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Spire.OfficeViewer as a Cake Addin
#addin nuget:?package=Spire.OfficeViewer&version=7.1.0

// Install Spire.OfficeViewer as a Cake Tool
#tool nuget:?package=Spire.OfficeViewer&version=7.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

.NET Viewer Component to Display MS Office and PDF Documents

Product Page | Forum | Customized Demo | Temporary License

Spire.OfficeViewer for .NET is a powerful Office Viewer component for developers to load Word, Excel, PowerPoint and PDF files and view them in a Windows Form application. It supports to view and print DOC, DOCX, DOT, XLS, XLSX, XLSB, ODS, PPT, PPTX, PPS, PPSX and PDF file formats. As a standalone library, Spire.OfficeViewer does not requires any other 3rd party library to be installed on system.

Main Functions

  • Load MS Office and PDF documents from disk or stream, and display them in a Windows Form application.
  • Load encrypt documents.
  • Set your display preferences, such as zoom in/out, fit width/height, and single/two page view.
  • Print documents.
  • Convert Word, Excel and PowerPoint documents to PDF and XPS.

How to Use this Viewer Component?

Create a Windows Form application, and install Spire.OfficeViewer for .NET via NuGet. You’ll find the controls offered by Spire.OfficeViewer in the Toolbox of your Visual Studio. There are three controls which you can drag into your Windows Form application directly, namely DocumentToolbar, DocumentViewer and OfficeViewer.

  • OfficeViewer: A viewer control with a pre-defined toolbar.
  • DocumentViewer: A viewer control without toolbar. You can customize a toolbar if you want.
  • DoucmentToolbar: A toolbar control only.

controls

OfficeViewer Control

Drag OfficeViewer into your Form1, and add the following line of code in your Form1.cs.

this.officeViewer1.LoadFromFile(@"C:\Users\Administrator\Desktop\Invoice-Template.docx");

Run the project, and you’ll get the following result.

officeviewer

DocumentViewer Control

If you drag DocumentViewer into your Form1, and add the following line of code in your Form1.cs.

this.documentViewer1.LoadFromFile(@"C:\Users\Administrator\Desktop\Invoice-Template.docx");

Then, you’ll get the output as follows after running the project.

documentviewer

Product Page | Forum | Customized Demo | Temporary License

Product Versions
.NET Framework net20 net35 net40 net403 net45 net451 net452 net46 net461 net462 net463 net47 net471 net472 net48
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
7.1.0 410 1/25/2022
6.6.0 389 6/15/2021
6.1.0 349 1/21/2021
5.4.1 488 4/21/2020
5.1.0 449 1/14/2020
4.1.0 1,534 1/18/2019
2.14.5 1,431 9/15/2016

Spire.Officeviewer 7.1.0