• 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

crystal report with jsp print to client side

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am now using crystal report for eclipse to create report for my web application. I can show the report know, but when i press the print button on the report print button, the action is always print our report to server default printer. Can i setting this so when the printer button i press or click the action is not print on server printer but print on client printer?

And then, what must i do if i want to show the print dialog when i press the print button?
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"Dragonz Lie", please check your private messages for an important administrative matter.
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Perhaps it might help to let us know how you are accomplishing the printing?
 
Ardi Lie
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, I'm sorry.
 
Ardi Lie
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
jsp_viewer
==========
reportname = "test_report.rpt";

clientDoc = new ReportClientDocument();
// Open report
clientDoc.open(reportName, OpenReportOptions._openAsReadOnly);

ReportPrinter rp = new ReportPrinter();

JRCHelperSample.printToServer(clientDoc, rp.getPrinterName());



this is my code for print this to server side, but i want to print the report on client side?
[ August 18, 2008: Message edited by: Ardi Lie ]
 
Bear Bibeault
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java printer code will run on the server. To print on the client you'll need to employ JavaScript.
 
Ardi Lie
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you give me an example how to print crystal report with java script?

If i using script :
<script>
window.print();
</script>

i can print it from client, but the result of printing is just the web site page, not the crystal report view.

I just want to print the crystal report view on the printing not all the page.

How must i do?
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi! friend,
i also want to show .rpt file on JSP.
can you help me for that?
I've downloaded crystal report plugin for eclipse.
but dont know how to use that.
My rpt contain no data. rpt contain only structure i need in report.
I want to connect database in jsp with that rpt file....
please mail me...
omkar.kelkar@isynergysys.com
thank you...
 
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I think maybe you can refre to the URL below. There are a lot of free articles for intermediate and advanced users.

http://www.crystalkeen.com/articles/crystalreports/

Good luck.
 
What is that? Is that a mongol hoarde? Can we fend them off with this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic