I want to export file to excel like this in my website. Is there any way to make it ? If can't do that with angularjs, please give me any suggestion(tool,lib or another languages can embedded to my website support this) to do that. Thanks.
This is file execel:
In our team we had a similar issue and we searched a lot for solution, we didn't find any good tool for this task except for creating a simple csv file, so in the end we decided to do all the reporting (PDF, Excel ,...) in server side.
Related
The Problem
There are a bunch of excel files (complicated models hobbled together) that change a lot. A lot of different people use these files to produce reports, but don't download the latest versions so the reports are wrong.
My First Idea
Make a web app and allow users to interact with the master form via a website. But I can't find any JavaScript libraries that can drive Excel file (run the functions).
Next Idea
Use python in the background. I looked at xlwings and win32com Python libraries but it seems they just interact with the actual Excel program and not xlsx files.
Questions
Is there a way to drive excel files using a web interface?
Is there a better way to solve the main problem of people using disparate files?
I made an statistics application which only permits actually to display various informations, using angular. Now i want to improve it.
On a page i have 3 big html tables containing the statistics and i'd like to let the users download them to use them on excel.
I've seen many ways to do it only in javascript but it's a bit too basic and for example, we can ony create one sheet by excel file. I used for a previous project a php Class to create my excel files which was really better.
Can you advise me about a way to create a more complex excel file, on my angular application, by calling maybe an external script or something?
Thank you very much
There are a plenty of solutions for your problem. All depends of your application, backend capabilities, frameworks used and so on...
A solution could be to create a webservice that uses the Apache POI apis.
I have a node web app that needs to convert a docx file into pdf (using client side resources only and no plugins). I've found a possible solution by converting my docx into HTML using docxjs and then HTML to PDF using jspdf (docx->HTML->PDF).
This solution could make it but I encountered several issues especially with rendering. I know that docxjs doesn't keep the same rendering in HTML as the docx file so it is a problem...
So my question is do you know any free module/solution that could directly do the job without going through HTML (I'm open to odt as a source as well)? If not, what would you advise me to do?
Thanks
As you already know there is no ready-to-use and open libs for this.. You just can't get good results with available variants. My suggesition is:
Use third party API. Like https://market.mashape.com/convertapi/word2pdf-1#!documentation
Create your own service for this purpose. If you have such ability, I suggest to create a small server on node.js (I bet you know how to do this). You can use Libreoffice as a good converter with good render quality like this:
libreoffice -headless -invisible -convert-to pdf {$file_name} -outdir /www-disk/
Don't forget that this is usually takes a lot of time, do not block the request-answer flow: use separate process for each convert operation.
And the last thing. Libreoffice is not very lightweight but it has good quality. You can also find notable unoconv tool.
As of January 2019, there is docx-wasm, which works in node and performs the conversion locally where node is installed. Proprietary but freemium.
It appears that even after three years ncohen had not found an answer. It was also unclear if it had to be a free (as in dollars) solution.
The original requirements were:
using client side resources only and no plugins
Do you mean you don't want server side conversion? Right, I would like my app to be totally autonomous.
Since all the other answers/comments only offered server side component solutions, which the author clearly stated was not what they wanted, here is a proposed answer.
The company I work for has had this solution for a few years now, that can convert DOCX (not odt yet) files to PDF completely in the browser, with no server side component required. This currently uses either asm.js/PNaCl/WASM depending on the exact browser being used.
https://www.pdftron.com/samples/web/samples/viewing/viewing/
Open an office file using the demo above, and you will see no server communication. Everything is done client side. This demo works on mobile browsers also.
Programming noobie here. I'm working on a website where users fill out a form and based on their input a given value from a big excel sheet is displayed on the page. I know JS, jQuery, HTML/CSS, and Python but I haven't learned how to use any framework like Django yet. I'm wondering how I can most easily read values from the xls doc. It looks like xlrd is a good bet. I'm doing this project on a tight deadline though so I'm not sure I have time to learn a framework like Django and it seems like overkill for something as simple as this. Can I use xlrd for the website without learning a framework? And more broadly, what's the simplest way to implement this solution (i.e. read values from an XLS doc onto a web page)?
Django is a big framework, consider using Flask microframework (it shouldn't take your more than 4 hours to get the basics and put together simple application).
The easiest approach would be to go with Microsoft technology stack - you can expose quite easily Excel sheet as Web Service, so the web page can read it data as JSON or XML.
this is just a rough idea, i am trying to create a magazine reading platform and i need the reading flow to be smooth, and so is the magazine upload process, it must be fast and easy. so i am thinking of using pdf file.
I am thinking is it possible to have a module(maybe a system?) to pull each page from the pdf and display it in a interface written in html? i know there is something similar in flash, but what i want it is something lighter and easier from development. coz at the end i am gonna put this module into maybe a cms system.
thanks in advance guys:)
Regards,
WJ
hi guys i just found this solution, pdf.js, it uses javacript to implement pdf displaying on the web page, it also able to create pdf file from javascript.
anyway the reader is there, and interface is able to change since it is html, i guess this should be the solution.