-
Notifications
You must be signed in to change notification settings - Fork 17
how to generate excel file from existing excel template? #6
Comments
@rabbittc You are talking about Meteor Template ? You can make a XLS with a collection, MeteorPad Example is good way to start. And if you want to make it reusable do a MODEL. So everytime you need to export to XLS/X call that method. But if you still want to use a whole template better try the question on StackOverflow. |
Excuse me I want to generat excel file from existing excel file. By set other value to cell name and we can use other property like merge cell, background color.... |
Each cell is an object you can change the value, the style.... lot of people asked that on the js-xlsx repo, check it
var excel = new Excel('xls');
var yourFile = basepath+'server/Test.xls';
var workbook = excel.readFile(yourFile);
var yourSheetNames = workbook.SheetNames;
var specificCell = workbook.Sheets[yourSheetNames[0]]['A1'];
specificCell.v = "test2";
var valueSpecificCell = workbook.Sheets[yourSheetNames[0]]['A1'].v;
console.log(valueSpecificCell);
excel.writeFile(workbook, yourFile); BUT!The
|
Very thanks, I will try. |
Now this is merged yet? |
I would to generate excel file from existing template.
Please example.
The text was updated successfully, but these errors were encountered: