aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Printing Crystal Rpt on client side in ASP pg Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Printing Crystal Rpt on client side in ASP pg" Watch "Printing Crystal Rpt on client side in ASP pg" New topic
Author

Printing Crystal Rpt on client side in ASP pg

Lino Vlacic
Greenhorn

Joined: Aug 28, 2008
Posts: 3
Hi all,

I'm new to this forum so excuse me if this question does not belong here.
If it does not, can someone point me to correct area.

Here is my question:
From my ASP.NET page, I need to print a Crystal Report to client's printer directly. I'm not using Crystal Report Viewer. I cannot use Crystal's PrintToPrinter method because this runs on Web Server side. How can I do this? I heard I need to use JavaScript to accomplish this but any
assistance would be great.

Thank you very much.
Lino Vlacic
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61010
    
  65

Please use real words when posting to the forums. Abbreviations such as "rpt" in place of "report" and "pg" in place of "pg" only serve to make your posts more difficult to read and less likely to generate useful responses.

Please read this for more information.

thanks,
bear
JavaRanch sheriff


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

Joined: Jan 10, 2002
Posts: 61010
    
  65

Also, please take the time to choose the correct forum for your posts. This forum is for questions on Java Servlets.

For more information, please read this.

This post has been moved to a more appropriate forum.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61010
    
  65

To print on the client you'd use window.print(). A google search yielded this as the first result.
Lino Vlacic
Greenhorn

Joined: Aug 28, 2008
Posts: 3
Thanks for the reply Bear, but window.print() prints the current web page. My question was how do I print a Crystal Report.

Lino Vlacic
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41529
    
  53
If "a Crystal report" is not a web page, then what is it?


Ping & DNS - my free Android networking tools app
Lino Vlacic
Greenhorn

Joined: Aug 28, 2008
Posts: 3
Ulf,

It's a ASP page which generates a Crystal Report.
I can use Crystal Viewer to view the report, and then I can
use the toolbar that comes with Crystal Report to print client-side.
But, I also need to send reports directly to client printer
and NOT use the Crystal Viewer. Get it? User may have a whole bunch
of reports and he does not want to view each one separately then print.
He wants to send all reports to printer and walk away.

Lino.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41529
    
  53
So it's a question about the Crystal Viewer application (or how to avoid it to print something in "Crystal Report" file format), and there's no connection to HTML and web pages?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Printing Crystal Rpt on client side in ASP pg