I’m using Apryse WebViewer with Office Editing enabled in my Angular project. I want to programmatically trigger the DOCX Editor’s “Insert Table” tool (the same as clicking the Table button in the UI), but I can’t find any API to do this.
I tried using docEditor.insertTable() to insert a table directly, which works, but I want to open the native Table Insert dialog/tool from code so users can interactively choose table options.
Is there any method or workaround to trigger the DOCX Editor’s Insert Table tool from code?
If not, is this feature planned for future releases?
Hello, I’m AiRon, an automated tech support bot While you wait for one of our customer support representatives, I can help you with your question.
You’re looking to programmatically trigger the “Insert Table” tool in the Apryse WebViewer DOCX Editor, similar to the interaction users have with the UI. Currently, there isn’t a direct API to open the native insert table dialog for user interaction as it is typically designed for UI-based interaction and not exposed programmatically.
Some things you can try:
Use docEditor.insertTable() to insert a table programmatically as a workaround, though it won’t open the dialog.
Consider creating a custom UI element that replicates the dialog functionality, allowing users to input table dimensions and then using docEditor.insertTable() to insert the table with those parameters.
Stay updated with Apryse’s release notes or contact support for any updates regarding this feature in future releases.
Here are some resources that might help you:
Adjusting Layout and Zoom - While not directly related, understanding the document viewer’s capabilities might inspire alternate approaches.