0

I know how to use the base64-encoded bytes of a file to create an excel workbook using office.js. The bytes I'm using represent a password-protected (encrypted) Excel workbook. When I use

Excel.createWorkbook(base64)

it prompts the user to enter a password. However, the user will not know the password.

Is there a way to specify the password in code so the file will be opened without prompting the user to enter a password?

Eugene Astafiev
  • 47,483
  • 3
  • 24
  • 45
Gove
  • 1,745
  • 10
  • 11
  • Feature requests on Tech Community are considered, when the dev team go through the planning process. Use the github label: `Type: product feature request` at https://aka.ms/M365dev-suggestions . – Eugene Astafiev Aug 23 '22 at 08:03

1 Answers1

1

Sorry, but there is no way to do this in Office.js at this time.

Rick Kirkham
  • 9,038
  • 1
  • 14
  • 32