AVAILABLE NOW: Spring 2025 Release
By Andrey Safonov | 2022 Jul 27
2 min
Tags
vue
xlsx
view
Looking for a Vue XLSX web app? This blog reveals how you can view Microsoft Office documents in a Vue file viewer using Apryse WebViewer. WebViewer support includes Microsoft Word, Excel, and PowerPoint formats and legacy formats like DOC, XLS, and PPT.
With a few lines of code, we can show how to view files client-side, with no server dependencies, Microsoft Office licenses or third-party software. Use the Apryse WebViewer to convert `DOCX`, `XLSX`, and `PPTX` files with JavaScript, and then render them for viewing dynamically.
You can also test out office demo for WebViewer and your files.
For more info, go to the full Vue doc viewer demo on our GitHub page, or visit the documentation for get-started steps and further information on additional functionality.
But WebViewer also supports more than just viewing Office documents. Additional offerings include annotation, mail merge on XLSX templates, text editing, page manipulation, redaction, form filling and creation, and a lot more.
Once the Vue doc viewer example is up and running, pass the URL, blob, file path, or arrayBuffer to `initialDoc` property in WebViewer constructor.
WebViewer({
...,
initialDoc: 'https://myserver.com/myfile.xlsx',
}, document.getElementById('viewer'));
You can also call `loadDocument` with the same parameters.
WebViewer(...)
.then(instance => {
instance.UI.loadDocument('https://myserver.com/myfile.xlsx', { filename: 'myfile.xlsx' });
});
Now, you can run the app via 'npm start'.
To view the npm React file viewer xlsx app, navigate to http://localhost:3000
. If you change any source files, the app automatically reloads.
When configuring the UI, use a rich set of APIs included with WebViewer. Read the UI customization guide to see all the possibilities, or create your own UI by referencing our open-source UI code.
You can easily add Office document viewing and collaboration to your native npm React file browser app with Apryse’s WebViewer, a JavaScript-based MS Office SDK. View the source code for this post on our GitHub page.
See for yourself. Try out Apryse features using your own documents with the interactive demo at Apryse showcase.
Have any questions about Apryse’s SDK or WebViewer? Start a chat on Discord with our solutions engineers or reach out to our sales team for a personalized demo.
Tags
vue
xlsx
view
Related Products
Share this post
PRODUCTS
Platform Integrations
End User Applications
Popular Content