Win a copy of Succeeding with AI this week in the Artificial Intelligence and Machine Learning forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
Sheriffs:
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • fred rosenberger
  • Frits Walraven

print a report (client side)

 
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
 
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.
 
author
Posts: 3281
8
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to Javaranch Alexis!
 
Today you are you, that is turer than true. There is no one alive who is youer than you! - Seuss. Tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic