How to embed an Excel file into a POI

Prev Next

Introduction

Purpose

This procedure describes how to embed an Excel file into a POI.

Procedure

There are two options:

  • Host the excel on your own server and iFrame the website.

  • Host the excel on third-party storage that supports excel and iFrame it. E.g., Google Drive, Microsoft Sharepoint etc..

For the second option using Google drive

  1. Upload the Excel file to Google Drive.

  2. Copy the share link.

  3. Create iFrame source code in POI:

    <p><iframe src="<your share link>" style="width:100%; height:900px"></iframe></p>
  4. Click Done.

Note: This can also work for PPT or Word files.