FreeSpire.DocViewer
7.6.0
dotnet add package FreeSpire.DocViewer --version 7.6.0
NuGet\Install-Package FreeSpire.DocViewer -Version 7.6.0
<PackageReference Include="FreeSpire.DocViewer" Version="7.6.0" />
paket add FreeSpire.DocViewer --version 7.6.0
#r "nuget: FreeSpire.DocViewer, 7.6.0"
// 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.
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.
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.
Product Page | Documentation | Examples | Forum | Temporary License | Customized Demo
Product | Versions 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. |
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.