Open local file by link on html site

Asked

Viewed 357 times

-1

Hello, I am creating an intranet and would like to know if it is possible to create a function or something of the type that will open a file excel on the machine, that is click on the link and open the file. This is required for a report page I’m creating, where the person clicks on the link and opens a report.

  • All the people who will click will have access to the place where is the file in question.

For I read on a topic that it was not possible to do this for security reasons.

1 answer

-1

Luiz depending on how you are doing this intranet you can add a link with the html tag, example below:

<a href="Caminho do arquivo">Visit W3Schools.com!</a>

//Exemplo

<a href="../relatorios/relatorio.xlm">Visit W3Schools.com!</a>

If there’s any doubt I’m here to help

  • Hello Bruno, thanks for the suggestion, I will consider using it. But would you like to tell me if you have any way to open it without downloading? in this method he ends up downloading, I would like him to simply open.

  • You could put this report in google Sheets then it will already open in the browser, otherwise the spreadsheet will be downloaded so the user can make the necessary checks

Browser other questions tagged

You are not signed in. Login or sign up in order to post.