• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to preview word document inside jsp page  RSS feed

 
alsoumahi alBatal
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi , experts I would like to ask if I can preview my word document exist in my webserver inside jsp page before printing or downloading the file

thanks a lot
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the time and money budget for this? While I could think of ways to do this using freely available software, the effort will likely take so long that a commercial solution might be cheaper to put into place, depending on the salaries of everyone involved.
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That question doesn't even make sense.

Before anyone outside of the server can see anything in a JSP page, they have to download the JSP from the server to a client machine. So the "damage", so to speak, is already done.

Beyond that, Internet Explorer is banned, courtesy of a $500 billion lawsuit, from displaying embedded content such as JSPs and PDFs within the browser window that displays the JSP. So IE users always have to receive the document as a "download".
 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tim seems to assume that "preview" means some kind embedded content or object, but there are various approaches to this that do not need that kind of complication. But to give informed advice on this we'd really need to know more about the use case and its attendant constraints.
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah. The phrase "preview my word document" implied to me the actual viewing of the document, full-content, full-scale.
 
alsoumahi alBatal
Ranch Hand
Posts: 113
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The phrase "preview my word document" implied to me the actual viewing of the document, full-content, full-scale.

yes , you are right , I need to give a user option to read the content for whatever document he wants to download , but before downloading he can view the word document in embedded page or frame , if he likes the document he can download instead of downloading every document to read the content . you might tell why to view the word document because I have many files I can not describe each one in order to let him understand the content of the file.


thanks a lot


 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The point of a preview is generally to provide an abbreviated or small-scale view of something. Maybe the text of the first paragraph of a document, or a one-tenth reproduction of an image. Facilitating previewing the entire document makes little sense, IMO, and comes with the complications Tim mentioned. You might just as well let the user download the entire document directly.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If this was my problem I would look into automating the creation of an abstract of each document as you put it in the system into some form compatible with HTML.

Processing each Word document again and again for each client would be a silly waste of resources. Each document would then have a matching abstract file you could show quickly on demand.

Bill
 
Tim Holloway
Bartender
Posts: 18531
61
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just to repeat myself. If you "preview" the entire document, you have to download the entire document. There are no plugins that allow reading just partial word documents via web interface that I've ever heard of, and thanks to the anti-plugin lawsuit (Eolas patent violation), IE isn't likely to support one even if the other browsers did.

Thumbnails/excerpts (Ulf) and/or abstracts (William) are what I'd recommend.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!