This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const xl = require('excel4node'); | |
const wb = new xl.Workbook(); | |
const ws = wb.addWorksheet('sheet1'); | |
const ws2 = wb.addWorksheet('sheet2'); | |
ws2.cell(1,1).string('value 1'); | |
ws2.cell(2,1).string('value 2'); | |
ws2.cell(3,1).string('value 3'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Uses excel4node version 1.x.x | |
var xl = require('excel4node'); | |
var wb = new xl.Workbook({ | |
dateFormat: 'm/d/yy hh:mm:ss' | |
}); | |
var ws = wb.addWorksheet('Dates'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var xl = require('excel4node'); | |
var http = require('http'); | |
http.createServer(function(req, res){ | |
switch(req.url){ | |
case '/download': | |
var wb = new xl.WorkBook(); | |
var ws = wb.WorkSheet('Sheet 1'); | |
ws.Cell(1,1).String('String'); | |
wb.write('Excel.xlsx', res); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var xl = require('excel4node'); | |
var app = express(); | |
app.get('/', function(req, res){ | |
res.end('Hello World'); | |
}); | |
app.get('/myreport', function(req, res) { |
NewerOlder