Frameworks
Integrations
Mendix
SharePoint
Modular UI
Legacy UI
AnnotationManager
Annotation Types
Customize
Version 11
Version 10
v10.12
v10.11
v10.10
v10.9
v10.8
v10.7
v10.6
v10.5
v10.4
v10.3
v10.2
v10.1
v10.0
Version 8
v8.12
v8.11
v8.10
v8.9
v8.8
v8.7
v8.6
v8.5
v8.4
v8.3
v8.2
v8.1
v8.0
Version 7
Version 6
v6.3
v6.2
v6.1
v6.0
Version 5
Version 4
Version 3
Version 2
WebViewer Server
WebViewer BIM
Welcome to Apryse. This guide will help you integrate a free trial of WebViewer into SharePoint Online as a web part. It will help you clone the SharePoint sample repository and show you how to integrate WebViewer as a web part. Your free trial includes unlimited trial usage and support from solution engineers.
For step-by-step help on setting up a SharePoint development environment, see one of the following:
The trial of Apryse SDK requires a trial license key, which is provided in the box titled "License Key". A commercial license key is required for use in a production environment. Please contact sales to purchase a commercial key or if you need any other license key assistance.
License keys are uniquely generated. Please make sure that it is not publicly available (e.g. in your public GitHub).
v14.15.0
and lower than v15.0.0
. You can check this by running node -v
in a console.If you are on a Windows machine, you can acheive this using the SharePoint Online Management Shell and use the following command:
If you are on a MacOS machine, you can acheive this with the PnP Powershell and use the following command:
The webviewer lib folder should now be available from the url: https://.sharepoint.com/sites//Shared Documents/Webviewer/js/lib.
sharepoint-integration-examples
sample from github.npm
to install gulp
, yeoman
and Microsoft SharePoint Generator
npm install
..env
file in the sharepoint-web-part folder and include the following parameters in the .env
file.initialPage
property in sharepoint-web-part/config/serve.json
by replacing with your tenant id and SharePoint site name.gulp serve
to start the web part in the workbench.You could now open a local file in the Webviewer.
gulp bundle --ship
and gulp package-solution --ship
to generate the webviewer.sppkg
file in the sharepoint-web-part/sharepoint folder.https://<your-tenant-id>-admin.sharepoint.com/_layouts/15/online/AdminHome.aspx#/classicFeatures
. Click the Open button under the App section.webviewer.sppkg
file by clicking the Upload button and select the webviewer.sppkg
file.Only enable this app
.webviewer-client-side-solution
in My Apps.In order to open files in SharePoint Documents Library, you will need to integrate with SharePoint extension. This extension allows us to add a button to any List View in SharePoint, such as your document libraries. You'll be adding a Open in Apryse
Button as a menu option to open and process any documents in Webviewer.
.env
file in within the sharepoint-extension folder in the sharepoint-integration-examples repository. Add the following parameters in the .env
file.npm install
.pageUrl
in the serve.json
in the sharepoint-extension/config folder by replacing the tenant id and site name.gulp serve
. This should generate a new window in the Document Library and popup and warning for you to allow debug scripts. Select the Load debug scripts
option in the popup.Open in Apryse
button after right click on a document in the Document Library.Open in Apryse
button will direct you to the page where you specify in the .env
file. In this case, it should be https://<your-tenant-id>.sharepoint.com/sites/<site-name>/SitePages/<site-page>.aspx
page that has webviewer web part.Similar to deploying the SharePoint Web Part, use the following command to genereate the sharepoint-extension.sppkg
file in the sharepoint-extension/sharepoint/solution folder.
Upload the sharepoint-extension.sppkg
file to the Apps in SharePoint Admin center and enable it for the website. You should be able to see the Open in Apryse
button after right-click on a document in the Document Library.
File handlers are an Microsoft 365 add-in that allows user to define customized actions on specified file types. With File Handlers, you can enable the following user experience:
You can started with creating a helper app that assist you to register the File Handler app in Azure Active Directory.
npm run setup:dev
to start setting up app registration for the Webviewer File handler demo. In the terminal, Enter the client id and tenant id of the helper app when prompted. You could access the client id and tenant id in the webviewer-app in Azure Active Directory..env
file should be created in the project root folder when the app registration is done. It should contain the following parameter:npm run start:dev
to start the local server.It usually takes about 24 - 48 hours for the new file handler to be effective in Sharepoint. However, microsoft provides a API to refresh the cache. (Resetting the file handler cache)
In order to get the access token for resetting Sharepoint cache, we can start from getting the code. Before using the API, we need to enable it in the API permissions under the application we registered (In this case, it's "Webviewer Demo").
http://localhost:3000/app-reset-cache
. You'll be requested to login twice with your microsoft account during the process. Once it's reset successfully, you will see Successfully reset the cache
on the page.After the development, you may want to deploy your server and redirect the filehandler to the hosted server.
You can achieve this by change the Manifest in your application.
Change the logoutUrl
with your new domain but with the same path. Change the url
in the object of the array replyUrlsWithType
.
Did you find this helpful?
Trial setup questions?
Ask experts on DiscordNeed other help?
Contact SupportPricing or product questions?
Contact Sales