• 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
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

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!
 
Arthur, where are your pants? Check under this tiny ad.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic