FreeSpire.DocViewer 4.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package FreeSpire.DocViewer --version 4.1.0                
NuGet\Install-Package FreeSpire.DocViewer -Version 4.1.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="FreeSpire.DocViewer" Version="4.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FreeSpire.DocViewer --version 4.1.0                
#r "nuget: FreeSpire.DocViewer, 4.1.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install FreeSpire.DocViewer as a Cake Addin
#addin nuget:?package=FreeSpire.DocViewer&version=4.1.0

// Install FreeSpire.DocViewer as a Cake Tool
#tool nuget:?package=FreeSpire.DocViewer&version=4.1.0                

Load, View & Convert Word Documents in WinForms

Product Page | Documentation | Examples | Forum | Customized Demo

Free Spire.DocViewer for .NET is a Community Edition of the Spire.DocViewer for .NET, which is a free Word viewer API for commercial and personal use.

Using Free Spire.DocViewer for .NET, developers can load, view, convert and print Word Documents within Windows Forms applications without Microsoft Office or any other third-party libraries to be installed on system.

Friendly Reminder: Free version is limited to 100 paragraphs and 5 tables. This limitation is enforced during viewing or printing files.

Main Functions

  • High performance Word viewer for displaying Word documents in Windows Forms applications.
  • Load and view all versions of Word documents, even encrypted (password-protected) Word documents.
  • Load Word documents from disk or stream.
  • Set viewing preferences, such as zoom in/out, fit width/height, and single/two page view.
  • Search text.
  • Convert Doc, Docx, Dotx to images, RTF, PDF, HTML, XML, SVG, TXT, EPUB, XPS, WordML and WordXML.
  • Print Word documents.
  • Enable developers to develop their custom Word document viewer.

How to Use this Viewer Component?

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

  • DocViewer: A viewer control with a pre-defined toolbar.
  • DocDocumentViewer: A viewer control without toolbar. You can customize a toolbar if you want.
  • DocumentToolbar: A toolbar control only.

img1

DocViewer Control

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

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

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

img2

DocDocumentViewer Control

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

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

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

img2

Product Page | Documentation | Examples | Forum | Temporary License | Customized Demo

Product Compatible and additional computed target framework versions.
.NET Framework net20 is compatible.  net35 was computed.  net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 is compatible.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on FreeSpire.DocViewer:

Package Downloads
Kang.WPF.Frame

自己用的WPF轮子,封装好ORM + UI框架

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
7.6.0 4,548 7/28/2022
4.1.0 7,186 1/18/2019
3.4.0 3,762 5/16/2018
1.8.0 4,885 1/28/2015