FreeSpire.DocViewer 7.6.0

dotnet add package FreeSpire.DocViewer --version 7.6.0                
NuGet\Install-Package FreeSpire.DocViewer -Version 7.6.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="7.6.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FreeSpire.DocViewer --version 7.6.0                
#r "nuget: FreeSpire.DocViewer, 7.6.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=7.6.0

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

Load, View & Convert Word Documents in WinForms

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

Free Spire.DocViewer for .NET is a powerful Word viewer component that allows developers to load, view, convert and print Word Documents within Windows Forms applications with ease.

Using Free Spire.DocViewer for .NET, all versions of Word documents can be loaded and viewed, even encrypted (password-protected) Word documents. Furthermore, conversions from Word to images, RTF, PDF, HTML, XML, SVG, TXT, EPUB, XPS, WordML and WordXML are supported as well.

As an independent component, Free Spire.DocViewer for .NET doesn't need Microsoft Office or any other third-party libraries to be installed on system.

Free version is limited to 100 paragraphs and 5 tables. This limitation is enforced during viewing or printing files. When your needs exceed the limitation, upgrade to Commercial Edition of Spire.DocViewer.

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 Spire.DocViewer for .NET via NuGet. You’ll find the controls offered by 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,743 7/28/2022
4.1.0 7,211 1/18/2019
3.4.0 3,823 5/16/2018
1.8.0 4,892 1/28/2015