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.
Spreadsheet Editor must be purchased as an add-on to your Web SDK subscription.
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:
If you are switching to the spreadsheet editor from the PDF editor, the initialMode
parameter is needed in the options when calling UI.loadDocument
:
You can also use the enableOfficeEditing: true
property to load the spreadsheet editor. The file URI requires the correct file extension .xlsx
. If you are passing in a blob, make sure to pass the extension
option as 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