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

Accessing a printer on the client side using a servlet

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all ,
I should print a report ( html form ) . I cannot use the print button of the browser . I will have a html button on the same page itself on pressing this button the report should be printed . Advance thanks to anybody who helps me .
 
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This cannot be done with server-side programming. If for whatever reason you cannot use the print function of the browser (why?), you probably need to use some kind of client-side scripting language (JavaScript or VBScript), or ActiveX control to accomplish this.
-Mirko
 
PerumaReddy GaganReddy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mirko ,
Thanks a lot for your reply . It would be so handy if u could tell me how to do it using java script .
yours ,
GAGAN
 
Mirko Froehlich
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry, I don't know too much Javascript... In my pocket reference, I just found out that the Window object contains a print() method, which is apparently only supported in Netscape Navigator and not in IE. Not sure if there's a way to do this in IE at all...
-Mirko
 
PerumaReddy GaganReddy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Mirko ,
Thanks a lot for your information . I am working on it and if i find anything new i will let u know .
with regards ,
GAGAN
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic