• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

crystal report with jsp print to client side

 
Ardi Lie
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • 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?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Dragonz Lie", please check your private messages for an important administrative matter.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Ok, I'm sorry.
 
Ardi Lie
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • 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
Author and ninkuma
Marshal
Pie
Posts: 64618
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • 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
  • 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?
 
Omkar Kelkar
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • 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...
 
Zhou Feng
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic