Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

opening a file

 
Krishna Srinivasan
Ranch Hand
Posts: 1862
Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic