• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Printing Zip Files

 
Vijendra Runwal
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to extract and print some files present on a page on a click of button.

Has anyone tried this ever...

I am using JBoss server, JSP and a struts framework..
I only have download links to individual files present on page..


Please let me know if additional info required..

Thanks...
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65126
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know what you mean by "printing" a zip file.

Are you just trying to create a link to one so that it can be dowloaded by the user?
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You want to print this extracted thing on the server? I ask because printing at the client side is entirely under the control of the person operating the browser.
 
Vijendra Runwal
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The file needs to be printed at Client side.

Let me make it simple.
Instead of zip files let's consider a single simple .txt or .doc file. On a JSP page I have name of the file say a.txt(it's a hyperlink, on clicking the link it downloads the file from server location). Now when user clicks on a.txt it's downloded. I want to implement additional functionality which can print the file directly(instead of downloading and then printing separately).

It can be like this, we can have a print button on the page, clicking on print will print the a.txt file contents directly.

Can we implement this functionality.

If yes, is it possible to implement it for multiple files.

Thanks...
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can not.
For security reasons browser do not allow web applications to access the client's file system directly. The most you can do is prompt the user to download it and save it to the location of their choosing.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic