on-internet
← Community

How to write array in excel sheet using excel4node

Stack Overflow ·

I am creating an excel file by using Excel4node package. by using this code // Require library var excel = require('excel4node'); // Create a new instance of a Workbook class var workbook = new excel.Workbook(); // Add Worksheets to the workbook var worksheet = workbook.addWorksheet('Sheet 1'); var worksheet2 = workbook.addWorksheet('Sheet 2'); // Create a reusable style var style = workbook.createStyle({ font: { color: '#FF0800', size: 12 }, numberFormat: '$#,##0.00; ($#,##0.00); -' }); // Set value of cell A1 to 100 as a number type styled with paramaters of style worksheet.cell(1,1).number(

Comments

Sign in or sign up to comment and upvote.

No comments yet.