This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Could you please find a friend to help your English? I'm not sure we can understand what you want to know.
However, Microsoft lost a very large lawsuit (over $500 million) with a small company called Eolas several years ago and as part of the settlement of that lawsuit, Internet Explorer is no longer allowed to open Word Documents, Excel spreadsheets, PDF's and other similar files in the browser window.
So far, Internet Explorer is the only browser that's been restricted that way, not Firefox, Opera, or browsers for other OS's such as Apple's Safari. But in Windows/IE, the browser windows cannot be used and the document is opened in a new window. Older versions of IE did not always get "fixed", so some of them will, but anything that old may have other problems by now.
An IDE is no substitute for an Intelligent Developer.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="application/msword; charset=ISO-8859-1">
Click here to open the document. </form>
href refers to the path of your document.
Joined: Apr 23, 2009
Sorry Mr. Tim, My apologies for the mistake in the Text.
My intension is as you got it right, I want to read a msword document, and show it to the user in the browser itself.
Thanks for the reply.
I tried the code snippet that you provided, but my browser is asking me for confirmation to open the document in MS Word application.
I think I have to use POI for my requirement. Please let me if there is any simple solution.
POI won't allow you to show the document in the browser. POI creates Word-format documents, but Internet Explorer is forbidden from opening Word documents in its own browser windows, regardless of where they came from or how they were generated.
It's not a technical problem, it's a legal issue. Microsoft isn't allowed to open MS-Office documents in IE windows, even if the documents themselves were created by something other than MS-Office.
You might be able to work around this using Google documents or some sort of mechanism like that. It still wouldn't allow you to actually open "Word" documents, but it might present the document in a form that meets Microsoft's legal limitations while still being close enough for users.