html - How to open an excel file in a browser on anchor button click in php
I am new toPHP
development. I have an anchor button in myPHP
view. Right now I am downloading the excel file on the anchor button click. But now I want to open it in a browser and then print it from there. For this I have searched many articles and found this solution but it doesn't tell how to call it.
For now I am doing the following
<a href="/inventory-web/Files/Example.xlsx" open class="btn btn-info" target="_blank" >Download File</a>
Hereopen
is use to open the excel file. When I click on the button it does open a new browser but it gives the error.
Any help would be highly appreciated.