Cara Memperbarui Doconut
Ikuti langkah-langkah ini untuk memperbarui dari versi 1.0.5.2 atau lebih rendah.
.NET Framework 4.7
Konfigurasi Web.config
Penampil memerlukan HttpHandler untuk didaftarkan melalui file web.config. Tergantung pada versi IIS Anda, ini dapat dilakukan menggunakan bagian berikut yang didefinisikan dalam web.config.
<httpHandlers>
<add verb="GET,POST" path="DocImage.axd" type="Doconut.DocImageHandler, Doconut" />
</httpHandlers><handlers>
<add name="DocImage" verb="GET,POST" path="DocImage.axd" type="Doconut.DocImageHandler, Doconut" />
</handlers>Perbarui Registrasi di halaman ASPX
Ubah pendaftaran assembly di halaman ASPX Anda.
<%@ Register Assembly="DocumentViewer" Namespace="DotnetDaddy.DocumentViewer" TagPrefix="asp" %><%@ Register Assembly="Doconut" Namespace="Doconut" TagPrefix="asp" %>Perbarui Tag Kontrol
Perbarui tag kontrol dari DocViewer ke Viewer.
<asp:DocViewer ID="ctlDoc" runat="server"/><asp:Viewer ID="ctlDoc" runat="server"/>Perbarui Namespace
Doconut 24.3.0 mengganti nama namespace. Tambahkan DLL baru: Doconut.dll, Doconut.Formats.dll, Doconut.Configs.dll, dan Doconut.Clouds.dll.
using Doconut;
using Doconut.Configs;
using Doconut.Formats;
using Doconut.Clouds;var viewer = new Viewer();Package Dependencies
- Newtonsoft.Json 13.0.3
- System.Text.Encoding.CodePages 6.0.0
- System.Text.Json 6.0.0
.NET Standard / Core
Perbarui Namespace
Doconut 24.3.0 mengganti nama namespace. Tambahkan DLL baru: Doconut.dll, Doconut.Formats.dll, Doconut.Configs.dll, dan Doconut.Clouds.dll.
using Doconut;
using Doconut.Configs;
using Doconut.Formats;
using Doconut.Clouds;var viewer = new Viewer();Package Dependencies
- Microsoft.Extensions.Caching.Abstractions 3.1.10
- SkiaSharp 2.88.6
- Newtonsoft.Json 13.0.3
- System.Drawing.Common 6.0.0
- System.Text.Json 6.0.0
- System.Text.Encoding.CodePages 7.0.0
.NET 6 or higher
Perbarui Namespace
Doconut 24.3.0 mengganti nama namespace. Tambahkan DLL baru: Doconut.dll, Doconut.Formats.dll, Doconut.Configs.dll, dan Doconut.Clouds.dll.
using Doconut;
using Doconut.Configs;
using Doconut.Formats;
using Doconut.Clouds;var viewer = new Viewer();Package Dependencies
- Microsoft.Extensions.Caching.Abstractions 3.1.10
- Newtonsoft.Json 13.0.3
- SkiaSharp 2.88.6
- System.Drawing.Common 7.0.0
- System.Text.Encoding.CodePages 7.0.0