Opening Word thourg 'href' link
I have a link that opens Word document
<a href="document.doc" target="_blank">Open document</a>
Of course, the document opens in IExplorer window. But there is a problem - the document I'm trying to open contains AutoOpen macro that starts whenever the document is opened. When I open the document through IExplorer, I get this error:
Run-time error: '4605':
This method or property is not valid because: this document is in other application.
So - how can I open the document in Word window?