I want to open the downloaded xlsx file through JavaScript using a Office URI scheme in Excel.

Masaki Hayashi 0 Reputation points
2023-07-26T04:10:16.9166667+00:00

Hello, I'm trying to open an xlsx file downloaded through JavaScript in Excel using the Office URI scheme, but it's not working properly.

Example URL: "ms-excel:ofv|u|:http://localhost:3000/706848bd-8ab3-4eba-8662-2cd3761a452f.xlsx"

As a result, the following error dialog is displayed by protocolhandler.exe

User's image

Title: Unsafe Content

This file is from a restricted site zone. Therefore, to protect users from unsafe content, Office has blocked this file from opening.

<Environment>

OS: Windows 11 Pro 22H2

Excel: Microsoft Excel for Microsoft 365 MSO (version 2306 build 16.0.16529.20164) 64bit

Browser: Google Chrome (version:115.0.5790.102)

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
2,144 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.