aspose file tools*
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
Author

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
Krishna-
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.
HTH


I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: opening a file