Skip to main content

OfficeViewer

The OfficeViewer extension control uses Microsoft’s Office 365 Live Viewers to show Word, Excel or PowerPoint documents embedded in a Wisej.NET application. You can view a file or a stream.

How to Use

The OfficeViewer extension can be added to a Wisej.NET project using NuGet Package Manager.

Sample Usage:

this.docViewer.FileName = "excel_sample.xls";
this.docViewer.FileStream = File.OpenRead(Application.MapPath("Files/excel_sample.xls"));
danger

The document(s) to view must be available in public internet!

danger

When testing, you must publish to a public URL, or you will see the message "An error occurred. We're sorry, but for some reason we can't open this for you." An easy way to do this through Visual Studio is by using dev tunnels.

info

Find more information in our OfficeViewer example in C# or in VB.NET.