This is a migrated thread and some comments may be shown as answers.

Print Report on client side print button click

7 Answers 313 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Yuvika
Top achievements
Rank 1
Yuvika asked on 12 Mar 2010, 07:21 AM
Hi,

I am using the telerik reporting to display reports in my project.
The print works ok locally but the problem is that when I host the website the print button click shows the dialog box to print aftera long period and it does the postback on click too.

What I want is to display the dialog box to print as and when the user clicks on print button on client side only. The click should pop-up the dialog to print on client event only.

I am not able to search the client id of the print button. I have verified the code below:
 string printScript = string.Format("{0}.PrintReport();", this.SearchReportViewer.ClientID);  
            this.ClientScript.RegisterStartupScript(this.GetType(), "ReportPrint", printScript, true); 

I does not solve my purpose as it popu-ups the print dialog at startup of the page. Please help its somthing urgent.

Thanks,
Yuvika

7 Answers, 1 is accepted

Sort by
0
Jason
Top achievements
Rank 1
answered on 21 Mar 2012, 12:47 PM
Not resurrect something this old, but I have the same problem here. When I add the function after the ReportViewer, it wants to print on EVERY page load, and every postback. Very annoying. 

How do we call the .PrintReport through a function, and have it print ONLY when asked to do so?
0
Peter
Telerik team
answered on 21 Mar 2012, 01:12 PM
Hi Jason,

This is a known issue we have already fixed in Telerik Reporting Q1 2012 release. Please upgrade to the latest Telerik Reporting release and let us know if you still experience any troubles.

Kind regards,
Peter
the Telerik team
NEW in Q1'12: Telerik Report Designer (Beta) for ad-hoc report creation. Download as part of Telerik Reporting Q1 2012. For questions and feedback, use the new Telerik Report Designer Forum.
0
Jason
Top achievements
Rank 1
answered on 21 Mar 2012, 11:41 PM
I still have the same problem, and I verified that my assemblies are all pointing to the right version. I have NO version 5 assemblies in my stuff. I am running Q1 2012 stuff. 

0
Jason
Top achievements
Rank 1
answered on 22 Mar 2012, 12:07 PM
It would help if I decided NOT to be special and clear my cached pages before I started. This is working as expected now, thank you. 
Different question - When I do run this, why does it take 25 seconds to pop up the print page? Is there a way to pop up a 'loading' box while the print dialogue opens
?
0
Peter
Telerik team
answered on 26 Mar 2012, 12:21 PM
Hello Jason,

We are glad that you were able to resolve the print on postback issue.

Up to your new question - introducing some kind of progress indicator while the required PDF for printing is rendered is in our TO DO list and we will introduce a fix in subsequent Telerik Reporting release.

Greetings,
Peter
the Telerik team
NEW in Q1'12: Telerik Report Designer (Beta) for ad-hoc report creation. Download as part of Telerik Reporting Q1 2012. For questions and feedback, use the new Telerik Report Designer Forum.
0
Bill Battaglia
Top achievements
Rank 1
answered on 19 Apr 2014, 12:54 PM
I am using chrome Version 34.0.1847.116 m, Telerik report viewer Assembly="Telerik.ReportViewer.WebForms, Version=7.2.14.127, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" 
When I click on print button it opens the print window and then it posts back the report viewer which closes the print window. So, user cannot print the report. As you said this has been fixed but it is still happening in this version of telerik reports assembly?? Do you have a fix for this issue for chrome? It works ok on IE.
0
Peter
Telerik team
answered on 23 Apr 2014, 03:18 PM
Hi Bill,

We are unable to reproduce the described issue with Chrome 34. Thus our recommendation is to upgrade your Telerik Reporting installation. Additionally you may find useful the True Print help article.

Regards,
Peter
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Yuvika
Top achievements
Rank 1
Answers by
Jason
Top achievements
Rank 1
Peter
Telerik team
Bill Battaglia
Top achievements
Rank 1
Share this question
or