Reputation: 35
I'm trying to view/download a PDF/Docx file on click of anchor tag.
The link is like below
<a href="http://iiswc.org/iiswc2012/sample.doc" target="_blank" rel="noopener noreferrer" data-auth="NotApplicable"><span style="font-size: 8.5pt; font-family: Verdana, sans-serif, serif, EmojiFont; color: rgb(25, 118, 210); background: white;">SampleDOC</span></a>
The above link works fine with iPAD/iPhone/MAC/Windows but not in Android Outlook wed add-in.
In Android Outlook web add-in the txt file download works fine via link.
Is there any other way to implement links other than using anchor tags ?
As per this link, window.open is not supported in Outlook web add-in.
Any help is appreciated.
@microsoft team: I've uploaded below GIF which shows what happens when a link is clicked.
Please let me know if you are in need of more information
Upvotes: 0
Views: 577
Reputation:
If you are using this snippet <a href="http://iiswc.org/iiswc2012/sample.doc" target="_blank" rel="noopener noreferrer" data-auth="NotApplicable"><span style="font-size: 8.5pt; font-family: Verdana, sans-serif, serif, EmojiFont; color: rgb(25, 118, 210); background: white;">SampleDOC</span></a>
, on-click you must be redirected to browser and browser will give the option to download the file. Unlike iOS, Android itself does not support rendering .doc or .ppt files.
You must be seeing the same behavior if you check the email with the same link.
Upvotes: 1