Get started with Apryse Spreadsheet Editor
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.
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.
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.
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?