Click here to Skip to main content
14,391,319 members
Rate this:
Please Sign up or sign in to vote.
See more:
I am trying to open docx, xls and pdf files via IE11 and chrome browsers using javascript and jquery.

I am able to launch only one out of docx, xls and pdf file.

Could you please help me out.

What I have tried:

I tried with Google docs iframe and other javascript libraries
Posted
Updated 11-Nov-19 23:37pm
v2

1 solution

Rate this:
Please Sign up or sign in to vote.

Solution 1

Browsers can display content in-page only if they understand it. For formats like MS Office files the end user must have an extension that enables it, for PDF most browsers has a pre-installed option for it, but the exact use of that is depends on the end user's settings (security related settings)...
In all, to open/download a file is a choice of the end user and not yours... when end user picks 'open' the ability of the browser to display it depends on the installed software and extension (plugin) you have or have not...
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100