It's not a secret anymore!*
The moose likes Other Java Products and Servers and the fly likes crystal report with jsp print to client side Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "crystal report with jsp print to client side" Watch "crystal report with jsp print to client side" New topic
Author

crystal report with jsp print to client side

Ardi Lie
Greenhorn

Joined: Aug 18, 2008
Posts: 5
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

Joined: Jan 10, 2002
Posts: 60822
    
  65

"Dragonz Lie", please check your private messages for an important administrative matter.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60822
    
  65

Perhaps it might help to let us know how you are accomplishing the printing?
Ardi Lie
Greenhorn

Joined: Aug 18, 2008
Posts: 5
Ok, I'm sorry.
Ardi Lie
Greenhorn

Joined: Aug 18, 2008
Posts: 5
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

Joined: Jan 10, 2002
Posts: 60822
    
  65

Java printer code will run on the server. To print on the client you'll need to employ JavaScript.
Ardi Lie
Greenhorn

Joined: Aug 18, 2008
Posts: 5
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

Joined: Nov 04, 2008
Posts: 6
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

Joined: Oct 29, 2008
Posts: 11
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.


RAQ Report<br />Free Java Reporting Tool<br /> <a href="http://www.raqsoft.com/" target="_blank" rel="nofollow">http://www.raqsoft.com/</a>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: crystal report with jsp print to client side
 
Similar Threads
Printing Crystal Rpt on client side in ASP pg
Printing in servlets?
Print Dialog Crystal report on JSP
Crystal Report Error with Struts
Print Crystal report directly to the default printer from Java