Open word document in browser instead of downloading






















Thanks, as I got the real idea cleared from you Show 2 more comments. It uses the custom filename specified on the view side. Christophe Roussy Christophe Roussy Akshay Akshay 2, 3 3 gold badges 33 33 silver badges 70 70 bronze badges. If you have control over the server code you should use 'attachement' as this will allow to use the same filename generation code.

If you have no control over the server this is a good solution. This is a brilliant solution to the problem however, as always, IE is holding us back from using it: caniuse. Important to note that this does not work across domains e. If downloading from one domain, the download attribute will not work if content is stored on a different domain. CORS may allow that content to pass through haven't tested.

Yes figured! This is for ASP. FilePath, FileMode. Open, FileAccess. Leon van Wyk Leon van Wyk 8 8 silver badges 7 7 bronze badges.

Oops, there were typing errors in my previous post. Andrew Barber 38k 20 20 gold badges 91 91 silver badges bronze badges. What previous post?

If you have Apache add this to the. Alexander Alexander 43 1 1 silver badge 4 4 bronze badges. Kindly suggest me. Thanks in advance. How satisfied are you with this reply? Thanks for your feedback, it helps us improve the site. In the File Explorer, right click on a Word document and then click on Open With and follow the prompts to set Word as the application to be used to open such files. A subscription to make the most of your time.

Try one month free. Most Active Hubs Microsoft Teams. Security, Compliance and Identity. Microsoft Edge Insider. Azure Databases. Autonomous Systems. Education Sector. Microsoft Localization. Microsoft PnP. Healthcare and Life Sciences. Internet of Things IoT. Enabling Remote Work. Small and Medium Business. Humans of IT. Green Tech. The Overflow Blog. Podcast An oral history of Stack Overflow — told by its founding team.

Millinery on the Stack: Join us for Winter Summer? Bash, ! Featured on Meta. New responsive Activity page. Related 1. Hot Network Questions. Question feed. Super User works best with JavaScript enabled. Accept all cookies Customize settings. Did you mean:. Sign In. Frequent Contributor. But now there seems to be no GUI-Option to undo this selection. Does nobody else has this behaviour?

I have version Many thanks!



0コメント

  • 1000 / 1000