• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

print a report (client side)

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to Javaranch Alexis!
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic