• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

print a report (client side)

 
Michael Houlo
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I tryed to export a report to .pdf in this way :

It looks like java was trying to save the file into the client side.. i had to use

to allow the client to download the file..

Now, i want to allow him to Print the report..
I use

In local mode, it works.. I have a msg box dialog allowing me to choose which printer i want to use.
But when i try to implement it, it doesn't work anymore.. it just keeps loading and nothing happens.
I guess he s trying to print in the server side ..

How can I allow the client to print the report ?
Is my reasoning good ?

I hope my english isn't THAT bad :$
Any answer will be appreciated
 
Michael Houlo
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Michael Leahcim wrote:Hello,

I tryed to export a report to .pdf in this way :

It looks like java was trying to save the file into the SERVER side.. i had to use

to allow the client to download the file..

Now, i want to allow him to Print the report..
I use

In local mode, it works.. I have a msg box dialog allowing me to choose which printer i want to use.
But when i try to implement it, it doesn't work anymore.. it just keeps loading and nothing happens.
I guess he s trying to print in the server side ..

How can I allow the client to print the report ?
Is my reasoning good ?

I hope my english isn't THAT bad :$
Any answer will be appreciated


EDIT :
It looks like java was trying to save the file into the client side.. i had to use
=>
It looks like java was trying to save the file into the SERVER side.. i had to use
 
Alexis Gamarra
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've the same problem, please if any person have a solution for that post it. Thank you.

PD: Sorry for my bad english.
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to Javaranch Alexis!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic