Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

229
Views
unprotect password in JavaScript with XLSX.read Javascript API

Read I want when upload file excel (excel is protect with password) unprotect or remove the password with XLSX.read but don't unprotect or remove the password from excel file.

This my code:

<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.8.0/jszip.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.8.0/xlsx.js"></script>
<script>
var reader = new FileReader();
reader.onload = function (e) {  
    var data = e.target.result;  
    /*Converts the excel data in to object*/  
    debugger;
    if (xlsxflag) {  
        var workbook = XLSX.read(data, { type: 'binary' ,  password: '123456' });  
    }  
    else {  
        var workbook = XLS.read(data, { type: 'binary' ,  password: '123456'  });  
    }  
    
    /*Gets all the sheetnames of excel in to a variable*/  
    //var obj = workbook.Open(Location, 0, false, 1, "password");

    var sheet_name_list = workbook.SheetNames;  
}
</script>
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!