The problem:
I'm working on a web application that exports data from a database to Excel, including a chart, which is the main reason for the export in the first place.
Now I would like for the chart to also be visible on the web page, without the need of exporting the data and opening the downloaded excel file. This could be of course done with JS libraries, but seeing as the chart is quite complicated, I would like to re-use existing export to excel instead or rewriting it all over again, now in JS.
Desired solution:
So, this is the best scenario possible: If it was possible to export a chart from excel file to png (or jpg or whatever) without even opeing the excel file, like from a command line or something. Also the generated files open well in OpenOffice, so I could go with that. Then I could just export to excel on server, then export the image from excel, and just send the image to client.
Is something like this even possible? I'm not against a third party program if it would do the trick. If not, what do you think is the next best solution for this scenario?
I have Excel 2016, and I'm generating the excel file with PHPExcel, if that is of any importance.
Posible solutions:
Some good options seem to be to save the document as web page, but I don't know if you can do that fro mcommand line / without opening the excel UI.
Also the Open Office API doesn't look half bad, but I have never used it before, could you export a chart via this API (with Java or something) without opening the Calc UI? I know open office has the --invisible option, that could prove useful.