OfficeDev / office-js

A repo and NPM package for Office.js, corresponding to a copy of what gets published to the official "evergreen" Office.js CDN, at https://appsforoffice.microsoft.com/lib/1/hosted/office.js.
https://learn.microsoft.com/javascript/api/overview
Other
657 stars 93 forks source link

How to open file from office Addin using physical file path (office.js) #3790

Open Jayshiv1408Dev opened 8 months ago

Jayshiv1408Dev commented 8 months ago

My Environment Platform : PC desktop Host: Word,PowerPoint,Excel Office version number: Microsoft® Word for Microsoft 365 MSO (Version 2304 Build 16.0.16327.20200) 64-bit Office version number: Microsoft® Excel® for Microsoft 365 MSO (Version 2309 Build 16.0.16827.20166) 64-bit Office version number: Microsoft® PowerPoint® for Microsoft 365 MSO (Version 2309 Build 16.0.16827.20166) 64-bit Operating System: Windows 10 pro

Hi Team We are developing office Add-ins for word , excel and power point in that we are opening document using file bytes. I want to open file from office Add-ins using physical path .Is there any way to open file (.docx , .xlsx , .pptx) from Add-ins using office js. Thanks.

Jayshiv1408Dev commented 1 month ago

@peronald @wangyun-microsoft Hi team! Is there any updates on this? While loading larger document which has 1000+ pages and 10K+ contentcontrol using bytes is taking 15-20 min . For that reason I need to check other option to load document. Or there solution for my problem.

wangyun-microsoft commented 1 month ago

@Jayshiv1408Dev , is this something you are looking for? https://learn.microsoft.com/en-us/javascript/api/word/word.application?view=word-js-preview#word-word-application-opendocument-member(1)