ASP.NET Web Document Viewer SDK Control

ASP.NET Web Document Viewer SDK Control 2.5

Platform : Windows 10, Windows 8, Vista, Windows 7

For ASP.NET Developer to view popular image format ,TIFF and PDF documents in web pages.
Navigate through TIFF, PDF document using Continuous scroll mode. Support Zoom, Print, Rotate the image.

C# - How to viewing and printing of a PDF and TIFF within a VS 2019 Web Form for NuGet Packages

Step 1: Run the Visual Studio 2019 or another Visual Studio version.

Step 2: Select  C# ASP.NET Web Application (.NET Framework).

Step 3: Select Empty project template, click Create button.

Step 4: Select WebApplication1 in Solution Explorer, right click the mouse, select Manage NuGet Packages...

Step 5: In Nuget Manager, enter "viscomsoft" in search bar, then select Viscomsoft.WebDocumentViewer.x86 package and click Install.

Step 6: Select WebApplication1 in Solution Explorer, right click the mouse, select Add - New Items... , select Web Form, enter the Default.aspx name. then click Add.

Step 7. In default.aspx, add the following code  to the top of the page before DOCTYPE tag.

<%@ Register Assembly="WebDocViewerControl" Namespace="WebDocViewerControl" TagPrefix="cc1" %>

Step 8.In default.aspx, add the following code  inside the body tag:


            <cc1:WebDocumentViewer ID="WebDocumentViewer1" runat="server" Width="1280" Height="720" EnableDisplayThumbnailList="true"  />


Step 9.  Select Web.config, add the following code to Web.config. You may add the following code after </system.web>



<add name="GetNumImage.axd" path="GetNumImage.axd" verb="*" type="WebDocViewerControl.WebDocViewerHttpHandlerGetDocPages" resourceType="Unspecified" requireAccess="Script" />

<add name="UploadImage.axd" path="UploadImage.axd" verb="*" type="WebDocViewerControl.WebDocViewerHttpHandlerUpload" resourceType="Unspecified" requireAccess="Script"/>

<add name="ConvertImage.axd" path="ConvertImage.axd" verb="*" type="WebDocViewerControl.WebDocViewerHttpHandlerConvertImage" resourceType="Unspecified" requireAccess="Script"/>

<add name="ExportImage.axd" path="ExportImage.axd" verb="*" type="WebDocViewerControl.WebDocViewerHttpHandlerExportImage" resourceType="Unspecified" requireAccess="Script"/>



Step 10: press F5 or click the green color arrow icon to run the project. You can click open button to select the image or TIFF or PDF file.