GroupDocs.Viewer UI Features Integration issue in ASP.NET 4.7.2

I’m working on a C# ASP.NET 4.7.2 project, and I’m trying to integrate GroupDocs.Viewer into my application to securely view common file types (like PDF, DOCX, XLSX, JPG, PNG) stored in Azure without exposing URLs to users.

Currently, I’m able to view PDF files in a new tab using GroupDocs.Viewer, but the viewer doesn’t have any UI options like print, zoom, download, or page navigation.

I downloaded your MVC sample project and noticed it has a much better UI with all these features.

Could you guide me on how to integrate that UI into my module?

@Parakrama

To integrate GroupDocs.Viewer into your project you have to copy files, code and install package. I’ll be referencing to this project.

Install package:

Copy files

  • Folder ActionResults
  • Folder ClientApp
  • Folder Controllers
  • Folder Core
  • Folder Models
  • Folder Storage
  • Folder Views\Viewer and add this code to the beginning of the Views\Viewer\Index.cshtml file to ignore your Layout file.
@{
    Layout = null;
}
  • Configuration code from Global.asax.cs
  • Assembly binding redirects from web.config in case you’ll get errors like ...could not load file or assembly...

After you copied all the files you have to adjust namespaces according to you project.
This is the project I’ve got after performing the steps listed above.

Please let us know if it works for you.

@Parakrama

Have you managed to integrate GroupDocs.Viewer into your application?