
Yoni Dagan
Top achievements
Rank 1
Yoni Dagan
asked on 05 Jun 2008, 08:13 AM
In using your product telerik
:ReportViewer we have encountered a problem, we would appreciate your help. We have a page in which we use the ReportViewer which we keep invisible. On this page we have a button to print reports, what we'd like is that clicking this button would do the same as if clicking the print button on your built-in toolbar. How is this done? Thank you for your help
9 Answers, 1 is accepted
0
Hi Sergey,
Take a look at the following forum thread that elaborates on your requirement in details. Give the suggestions a try and let us know if we can be of further help.
Greetings,
Steve
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Take a look at the following forum thread that elaborates on your requirement in details. Give the suggestions a try and let us know if we can be of further help.
Greetings,
Steve
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0

Yoni Dagan
Top achievements
Rank 1
answered on 05 Jun 2008, 10:56 AM
thanks for the answer, but when can i expect this new version which supports printing programatically?
thank you.
thank you.
0
Hi Sergey,
This functionality has already been implemented and explained in this part of the forum thread and namely - use ReportProcessor.Print() method.
Greetings,
Steve
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
This functionality has already been implemented and explained in this part of the forum thread and namely - use ReportProcessor.Print() method.
Greetings,
Steve
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0

Yoni Dagan
Top achievements
Rank 1
answered on 10 Jun 2008, 09:26 AM
Hi, Steve!
I depend on link button OnClientScript attribute as call java function and below You can see the function:
I depend on link button OnClientScript attribute as call java function and below You can see the function:
function
PrintReport()
{
var objReport = document.getElementById('ReportScoringList');
if(objReport)
{
objReport.Print();
}
}
Why objReport not including Print() method.0

Yoni Dagan
Top achievements
Rank 1
answered on 10 Jun 2008, 09:55 AM
Why when i put the reporting control at my web page, i can't see the buttons of this control (except navigation button)? maybe i need change somewhat in web.config
0
Hi Sergey,
Up to your questions:
Kind regards,
Steve
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
Up to your questions:
- in order to get the client object of the ReportViewer, you need to get reference to it like this:
<%=ReportViewer1.ClientID %>.Print(); Using document.getElementById() means you will get the DOM element only, which of course does not have Print() method exposed. - do you have ShowPrintButton and ShowExportGroup properties set to "true"? This is the default behavior of the ReportViewer, so please check if you do not set them to false based on some condition in your code.
Kind regards,
Steve
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0

Yoni Dagan
Top achievements
Rank 1
answered on 10 Jun 2008, 12:22 PM
Thanks for the answer, but <%=ReportViewer1.ClientID %>.Print();
not working!
not working!
0
Hello Sergey,
I am not having any problems with this functionality. Find attached a sample web application using the before mentioned approach. I instantiate an instance of the ProductLineSales report from the online examples and display it in the report. Above the report there is a "Print Report" button, which calls <%=ReportViewer1.ClientID %>.Print(); accordingly.
Best wishes,
Steve
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
I am not having any problems with this functionality. Find attached a sample web application using the before mentioned approach. I instantiate an instance of the ProductLineSales report from the online examples and display it in the report. Above the report there is a "Print Report" button, which calls <%=ReportViewer1.ClientID %>.Print(); accordingly.
Best wishes,
Steve
the Telerik team
Instantly find answers to your questions at the new Telerik Support Center
0

Yoni Dagan
Top achievements
Rank 1
answered on 10 Jun 2008, 01:18 PM
Thanks Steve!
Now it working properly only after I am placing the javascript blocks at the bottom between the </body> & </html> anchor tags.
Now it working properly only after I am placing the javascript blocks at the bottom between the </body> & </html> anchor tags.