My requirement is to create a webpage where after clicking on a button/hyperlink, a window will open in same page, and that window should show excel spreadsheet.
Please note that I know how to open an excel in HTML window but here i want to display excel spreadsheet in editable format in my webpage developed in HTML window.
Please let me know if this is achievable through HTML, Javascripting.
Thanks.
Because you've asked only to read the data you can simply export the spreadsheet to html and from there it'll work like any other webpage. Here are the instructions: http://www.extendoffice.com/documents/excel/674-excel-export-to-html.html
Try this Javascript library to display data as excel in html you can pass your data in different formats as well, ex:- json, list, array etc.
Related
I'm currently using node-xlsx library to generate an excel file.
I'd like to add a file, specifically an image object, inside of the excel I'm creating, so that the user can just double click on the cell to open the image.
The alternative way would be to produce an excel and an external jpg file and put an hyperlink to it into the cell, but I think the first idea would be more user friendly...but I can't find a way to do that!
Can you help me finding out if it is even possible with node-xlsx or an equivalent library?
Using NativeScript + VueJS, I'm trying to find a way to take a dynamic template that's rendered based on props and route data, and tap a button to save the "view" as a PDF to the filesystem.
I found this tutorial here which gives me a start: https://medium.com/#kumarandena/pdf-generation-in-nativescript-using-javascript-libraries-864ecf4e9a3a
This generates a Base64 which you then copy to clipboard and open in a browser. In iOS for example if I choose to save the page as a file it's just unknown.pdf. So my goal is to reference an html element, like a div, and save all the contents exactly as they appear into a folder of my choice in the native file system.
There's little to find on this so wondering if someone has accomplished this.
I use domtoimage to convert any dom element to an image, and it works well. Then you can probably insert that image to a pdf using jsPDF or pdfMake.
I see in the pdfMake playground that you can insert an image with a dataurl format.
In the same way that I can get Excel to grab text from a website and copy it on a spreadsheet, I'd like to be able to do the same using HTML or JS code and paste it on my website. I have no relationship with the target website and can't modify it.
I'm looking to copy the text in a <td> element and show it in my HTML file.
All the answers to similar questions require the domain to have CORS, which it doesn't.
Maybe if somebody knows how Excel pulls it off...
Is there a node.js module or a javascript library that can convert HTML/Page into PDF with selectable texts and working links? I've tried Phantomjs. But since its the only screenshot the page and convert it to pdf, texts are not selectable and links are not working. Also tried jsPDF but links are not working either. Hope you guys can share some of your experience in dealing the same problem.
Your response is greatly appreciated.
You can parse the HTML body with htmlparser. The complete html will be properly converted to JSON.
Depending upon the keys, you can then write it to a PDF using pdfkit.
This is very general solution. If you give us an insight as to what type of HTML you want to get into a PDF, maybe then we would be able to help with some specific code or logic.
Try http://www.cloudformatter.com/css2pdf.
Their links demo at http://www.cloudformatter.com/CSS2Pdf.Demos.Hyperlinks shows external links and internal links within the generated PDF.
I have an HTML page which contains a table for the year 2015. On this HTML page, there are links from 2011 to 2015. Every year has different table. I need to access these table elements using JavaScript. Any ideas about how to do it?
Thanks
If I were you I would parse the entire page. Right click the screen and click view source in windows. This will show the xml of the webpage that you could parse. I would advise you to use jparse.