For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get started with Apryse Spreadsheet Editor

Requirements

These packages are required to use these features in production. Trial keys have unlimited access to all features

Web SDKPackage: Spreadsheet EditorLive demo

Get started with Spreadsheet Editor by enabling it and loading an initial or blank spreadsheet. From there, view, edit, or create data in your XLSX spreadsheet. For more, see the Spreadsheet Editor overview.

The web component version of the Web SDK Modular UI is the recommended integration method and supports the latest WebViewer features. The Spreadsheet Editor also supports Iframe mode for legacy integrations. See Using an iframe and Iframe vs Web Component for more details.

Info

  • You must install WebViewer to use Spreadsheet Editor.

  • In this guide, Spreadsheet Editor refers to the UI, and Spreadsheet Editor Manager refers to the API that controls its lifecycle and state.

Get started videos

Learn how to integrate WebViewer and enable the Apryse Spreadsheet Editor by selecting a tab and viewing the corresponding video. All videos integrate WebViewer with the Spreadsheet Editor enabled.

  • 11.10+ React with Vite: Uses a web component in React.

  • 11.8-11.9 React with Vite: Uses an iframe in React.

  • 11.8-11.9 Nuxt: Uses an iframe with Nuxt.

You can also skip the videos and go to the WebViewer constructor section to get started.

How to ad Spreadsheet Editor 11.10 in a React project
Integrate WebViewer and enable Spreadsheet Editor in a React with Vite project
Integrate WebViewer and enable Spreadsheet Editor in a Nuxt project

Prerequisites

Before you start:

  • Install Node.js and npm. We recommend using the latest active LTS release.

  • Create a folder for your project.

  • Integrate WebViewer into your project.

  • Open a text editor like Visual Studio Code.

  • Get your Apryse trial key.

spinner

Enable Spreadsheet Editor

To enable the Spreadsheet Editor, set the initialMode parameter in the WebViewer constructor. Supported values are defined in the Modes enum. Omitting initialDoc will load an empty spreadsheet. The following example loads an existing spreadsheet.

This example shows how to implement the code in an HTML project with WebViewer and the Spreadsheet Editor enabled.

By default, the Spreadsheet Editor opens in view mode. To start in edit mode, set the initialEditMode property within the spreadsheetEditorOptions parameter in the WebViewer constructor.

The following example loads a spreadsheet in editing mode, allowing you to interact with and modify its contents.

Load a spreadsheet

To load a spreadsheet using the Spreadsheet Editor, call the UI.loadDocument() method. If you're switching from the PDF viewer, include the initialMode option and set it to WebViewer.Modes.SPREADSHEET_EDITOR.

You can also use the enableOfficeEditing: true property to load the Spreadsheet Editor. If you pass a file as a blob, make sure to include the extension option with the value xlsx. When you pass in a file path, it must have the .xlsx extension.

Listen for editor-ready events

Before performing any programmatic actions, you must listen for the spreadsheetEditorReady event. For more, see Events.

Next steps

To explore additional document workflows and features, see:

Last updated

Was this helpful?