wood burning stoves 2.0*
The moose likes Servlets and the fly likes opening a file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "opening a file" Watch "opening a file" New topic

opening a file

Krishna Srinivasan
Ranch Hand

Joined: Jul 28, 2003
Posts: 1844

i want to display a report in word format or pdf format.how can i open that files and display.that pdf shold be in differnet window not inside browser.
Advance Thanx.

Krishna Srinivasan
Spring Tutorials, OCAJP Mock Questions, 400+ OCPJP Mock Questions
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
If this is a silly answer is because I didn't understand your question. Can't you just create an hyperlink with an target="_blank"?
that will open a new window, and since it is a file, a default program will open your pdf/word.
If you have to generate your reports in different formats, then have a look at XML FO.

I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
I agree. Here's the link: http://aspose.com/file-tools
subject: opening a file
Similar Threads
How to display jasper report in jsp
Acrobat reader question
chinatag SCEA5 exam simulator
Creating a file from Various chunks of different files in java
web.xml couldn't detect taglib tag anymore?