Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file gets exported for example 3 but without any color or font #10

Open
Amitloh opened this issue Aug 11, 2016 · 0 comments
Open

file gets exported for example 3 but without any color or font #10

Amitloh opened this issue Aug 11, 2016 · 0 comments

Comments

@Amitloh
Copy link

Amitloh commented Aug 11, 2016

<script type="text/javascript" src="/Style Library/shim.js"></script> <script type="text/javascript" src="/Style Library/jszip.js"></script> <script type="text/javascript" src="/Style Library/xlsx.js"></script> <script type="text/javascript" src="/Style Library/date.js"></script> <script type="text/javascript" src="/Style Library/DragAndDropForm.js"></script> <script type="text/javascript" src="/Style Library/FileSaver.min.js"></script> <script type="text/javascript" src="/Style Library/workbook.js"></script> <script> console.log('hello'); if(typeof XLSX === 'undefined' && typeof require !== 'undefined') XLSX = require('xlsx'); var workbook = { SheetNames: ['Sheet 1'], Sheets: { 'Sheet 1': {'!ref': 'A1:A1'}}}; workbook.Sheets['Sheet 1']['A1'] = {"v": "Hello Red Arial 24pt", "s": {font: {name: "Arial", sz: 29, color: {rgb: "FFFF0000"}}}} // $("#out").text(JSON.stringify(wb,null,4)); var wopts = { bookType:'xlsx', bookSST:false, type:'binary' }; var wbout = XLSX.write(workbook,wopts); /* the saveAs call downloads a file on the local machine */ saveAs(new Blob([s2ab(wbout)],{type:""}), "test.xlsx") </script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant