Search code examples
asp.nethtmlexcelembed

How do I show an embedded excel file in a WebPage?


I want to allow an Excel report to be viewed embedded in a WebPage... is there a way?

  • I don't want to use an ActiveX, or OWC (Office Web Components), I just want to open an existing file from the internet explorer application.

  • I don't want users to download and then open it.

Using an iframe wouldn't be a problem, but my preliminary tests weren't successful

Any ideas? Is it at all possible?


Solution

  • This has to do with the local person's browser set up and not really anything you can do on your end. If they click a link with the .xls(x) extension, the browser determines if it wants to open it itself or in a new window.

    Here 2 microsoft pages on how to change these settings:

    http://support.microsoft.com/.../how-to-configure-internet-explorer-to-open-office-documents-in-the-app

    http://support.microsoft.com/.../embed-your-excel-workbook-on-your-web-page-or-blog-from-sharepoint-or-onedrive-for-business