Enable Spreadsheet Editor and load an initial or blank spreadsheet. From there, view, edit, or create data in your .xlsx spreadsheet.
Spreadsheet Editor is currently supported in the iframe version of the Web SDK Modular UI. For more details on initializing in iframe mode, refer to this guide.
You must have WebViewer installed to be able to use Spreadsheet Editor.
Learn how to enable the Apryse Spreadsheet Editor through the Apryse WebViewer by viewing our video. In this video we build a React with Vite project and integrate the Apryse WebViewer with the Spreadsheet Editor enabled. You can also skip the video and follow the steps below to get started instead.
Builds a React with Vite Spreadsheet Editor in the browser
Before you start:
Apryse collects some data regarding your usage of the SDK for product improvement.
If you wish to continue without data collection, contact us and we will email you a no-tracking trial key for you to get started.
To enable the spreadsheet editor, you can pass the initialMode parameter in WebViewer’s constructor options. Omitting the initialDoc will load an empty spreadsheet. The following sample loads an existing spreadsheet:
Below is an example of how the code might look in an HTML project where WebViewer is integrated and Spreadsheet Editor is enabled:
index.html
If you are switching to the spreadsheet editor from the PDF editor, the initialMode parameter is needed in the options when calling the UI.loadDocument API:
You can also use the enableOfficeEditing: true property to load the spreadsheet editor. If you are passing in a blob, make sure to pass the extension option as xlsx. If you are passing in a file path it requires the file extension .xlsx:
Before performing any programmatic actions, you must listen for the SPREADSHEET_EDITOR_READY event. This event fires after the editor has initialized and is ready for interaction. The following sample waits for the editor to be ready before enabling EDITING mode:
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales