Ardi Lie

Greenhorn
+ Follow
since Aug 18, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ardi Lie

Hi, can someone tell me how to show print dialog when i press print on crystal report report? I'm using JSP for code that?


Thanks,
15 years ago
JSP
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?
15 years ago
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 ]
15 years ago
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?
15 years ago