Berry.DocxViewer 1.0.2

dotnet add package Berry.DocxViewer --version 1.0.2
NuGet\Install-Package Berry.DocxViewer -Version 1.0.2
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="Berry.DocxViewer" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Berry.DocxViewer --version 1.0.2
#r "nuget: Berry.DocxViewer, 1.0.2"
#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 Berry.DocxViewer as a Cake Addin
#addin nuget:?package=Berry.DocxViewer&version=1.0.2

// Install Berry.DocxViewer as a Cake Tool
#tool nuget:?package=Berry.DocxViewer&version=1.0.2

Berry.DocxViewer

Downloads

一款用于浏览 Word 2007+ (.docx) 文档的 WPF 控件库,基于 Berry.Docx.Visual 项目开发。

A WPF control library for browsing Word 2007+ (.docx) documents, based on the Berry.Docx.Visual.

本项目是参照文档在 Microsoft Office Word 2019 中的显示效果进行渲染的。由于无从得知 Word 的渲染方案,所以不保证效果与其一致。

This project is rendered with reference to how the document appears in Microsoft Office Word 2019. Since there is no way to know Word's rendering scheme, there is no guarantee that it will be consistent.

程序包(Packages)

Berry.DocxViewer 的 NuGet 软件包发布在NuGet.org上:

The release NuGet packages for Berry.DocxViewer are on NuGet.org:

Package Download
Berry.DocxViewer NuGet

使用 (Usage)

XAML

<Window x:Class="WpfExample.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfExamplet"
        xmlns:berry="clr-namespace:Berry.DocxViewer;assembly=Berry.DocxViewer"
        Title="MainWindow" Height="850" Width="900">
    <Grid Name="UIGrid">
        <berry:DocxViewer Source="example.docx" />
    </Grid>
</Window>

C#

using Berry.DocxViewer;

DocxViewer viewer = new DocxViewer();
UIGrid.Children.Add(viewer);
viewer.Load("example.docx");

显示效果如下 (The display effect is as follows):

P1

example01

P2

example02

40%

alternate text is missing from this package README image

更新日志(Release History)

v1.0.2 (2023-06-16)

  • 支持表格 (Supports tables)。

v1.0.1 (2023-06-02)

  • 支持嵌入式图片 (Supports inline pictures)。

v1.0.0 (2023-05-29)

  • 支持显示页面、段落和文本字符 (Supports pages、paragraphs and characters)。
Product Compatible and additional computed target framework versions.
.NET Framework net40 is compatible.  net403 was computed.  net45 was computed.  net451 was computed.  net452 was computed.  net46 was computed.  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.

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
1.0.2 195 6/16/2023
1.0.1 149 6/2/2023
1.0.0 150 5/29/2023

支持表格 (Supports tables)。