Nodejs Excel file with graph and VB module - node.js

I am working on a project that I need to make an excel file in nodejs and then send the file to the client side. However, I need to have possibility to not only insert some data in the workbook but also possibilities to plot the data. I am also interested if it is possible to write some VB code directly in nodejs to such excel file. Is there any package to do this for me?
Thanks

Related

Create excel file from data in csv file with node.js

I am developing MEAN stack application. I get data from a .csv file. Then I need to convert excel file and put the data from .csv file in excel file. This is achievable with multiple npm packages.
However the main problem is that I need to create pre defined excel file (I have excel template which I need to fill with the data)
How can I achieve that? I would be very happy if someone could suggest me some npm package or provide me with some documentation to achieve that with nodejs.
Thank you

NodeJs construct Excel file and export in PDF

As the title said, I'm searching for a NodeJS library to construct Excel (xlsx), with cell format (color, font size, images...). Importantly, it must has the capability of exporting the resulted .xlsx file to .pdf format.
I know some libs that call Excel API but I'm running a linux server and that's impossible for me.
Thanks to jcaron comment I finally found out that I can build a PDF file directly without passing through xls.
I used pdfmaker for nodejs that support creating PDF file pretty well.

How to read all excel and csv formats using node

I am working in building a project management tool,using MEAN(Mongodb,Expressjs,Angularjs,Nodejs) Stack.
I have a requirement in my project, where users will upload any kind of excel or csv format file and i need to parse each row from the file(excel|csv) and map it to my database model and save it has a mongodb document.I am trying to find an excel and csv parser library to accomplish my task.I also came accross xlsx, it looks good but it doesnt support reading csv files.It will be really helpful if any one could suggest a node.js library that can read all kinds of excel and csv file formats efficiently.Thanks in advance
At one point, I used Node CSV https://github.com/wdavidw/node-csv
to get the data inputted, it's really easy to use. Most of my users were fine with just having the CSV format option.....but you could combine the functionality of each library depending on the file type entered.....

xlsx generation in nodejs, along with graphs

I need to create Excel Sheet report in nodejs, along with some pie/bar charts. The Packages like https://github.com/SheetJS/js-xlsx and https://github.com/guyonroche/exceljs doesn't provide the facility to create charts.
Can anyone suggest any methodor existing package so that pie/bar charts can be included in xlsx report in Nodejs?
I have the same problem and I am looking for the solution as well.
I have found https://www.npmjs.com/package/xlsx-chart but I don't know yet how to integrate data along with the chart because the plugin generate separate sheet for data and table.
Using https://www.npmjs.com/package/quiche you will get an URL with the image. I´ve tryed to integrated it in exceljs or to save it like an image but seems impossible
You can generate a Google Chart image and insert it in your report. There is https://github.com/ryanrolds/quiche for that.
It will call Google API to generate your image and return the URL. I believe it's not hard to integrate an image from URL into the xls.
You can use an npm lib called office-chart.
https://www.npmjs.com/package/office-chart/v/1.0.26
It will allow you to create xlsx charts in mulisheets and also create pptx with charts.

Batch file for inserting macro's

I am trying to create a batch file as icon on desktop, that would open a specific excel file, create a macro in it and copy code from a specific txt file into it.
The reason i need this, is that the file is located on a server and the ending .xlm cannot be cahanged (should not) so i cannot save it as a macro enabled file (to store a macro in it )
Could annyone with better understanding please explain to me how to create the said code ?
Thanks in advance!
In theory it's possible by using the VBE object (https://msdn.microsoft.com/en-us/library/aa443984%28v=vs.60%29.aspx). But that's not activated by default so you can not ensure that each user is able to do that.
Better find other solutions for that problem. Can you upload .XLSB for example? Or do you have another kind of server available - for example a database server - you can use for storing the file? We use this method here for deploying our updates on AddIns and report templates for example.

Resources