I want to open Excel File from javascript
I am trying below code, it is opening the Excel file but the content is not correct as file is getting opened as [ReadOnly].
window.open('ms-excel:ofe|u|http://some-host-name.com/filestest.xlsx');
Can I open the file without [ReadOnly] using similar code?
Related
On my server I create an xlsx-file and save it to the servers file system. Afterwards the files URL is sent to the clients browser, where the file is supposed to be opened directly in excel with the help of javascript:
window.location.href = 'ms-excel:ofv|u|https://myserver.com/path/to/file.xlsx'
Now the first time it worked like a charm. The file was downloaded, the browser asked whether to open excel, I said yes and the file was opened in excel.
But as as soon as I try to open the file again or another xlsx file in the same way, it stops working. Excel gives a warning, that it could not access the file.
Does anyone have an idea what the reason could be?
I restarted excel
I looked for cached files that prevent downloading more xlsx files
I checked that the files exist and can be opened (accessed them via their urls directly in the browser)
I am building a list of PDFs from server side in HTML. In the list I'd like to include a a print button . Is there some way to directly open the Print dialog for the PDF without the user seeing the PDF or opening a PDF viewer? Or Can I use print.Js Library in this case
In my application I want the user to upload an excel file and then he should be able to view the contents of the excel file with the web page where he uploaded. Is there any way to achieve this?
You can maybe save the excel sheet as a csv file, then upload, read the contents and write it on to the page. More info here: read csv file from a location and display as html table
I am using Linux and I want to import a text file present in /home/cloudera/File/myfile.text file into my html document containing javascript to display the contents of the text file in my web browser. I am new to this concept. Please help me by suggesting the possible ways how to do it. Also is .text file format in ubuntu same as .txt file format in windows?
I am trying to develop in which the user can upload their pdf and add images to it. But i can't find any resource on how to read a pdf file in nodejs and open it in jspdf to edit it.
Can I open the uploaded pdf using jspdf?