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

Print button in the ReportViewer

9 Answers 265 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Marlos
Top achievements
Rank 1
Marlos asked on 13 Aug 2010, 05:43 PM
In the ReportViewer the print button is not functioning correctly, i searched in forums, but i don't found how it work. i need print a report clicking the print button. Please, i need it resolved quickly.

If no have easy solution to problem, you can send to me a hard solution (no problem), but i need it resolve.

thanks!

9 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 16 Aug 2010, 07:29 AM
Hello Marlos,

Unfortunately the information you've provided is insufficient for us to determine what is not working in your solution. First, we do not know what viewer you are referring to - ASP.NET, Windows Forms, Silverlight or WPF?
The Telerik Reporting installer comes with examples solution that contains several demo reports and sample projects for each technology. Our advise is to open our examples and review the provided runnable solutions (Start menu --> Telerik --> Reporting Q2 2010 --> Visual Studio 2008 examples).

Regards,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Igor
Top achievements
Rank 1
answered on 12 Oct 2010, 01:46 AM
Hi,

I am using trial version of telerik report viewer for silverlight4.
The control gives me every thing I need to impelement reports required.
The only thing that is not working is the print button.  When I press it nothing happens.
Initially I was thinking that it will not work on development machine (I am using Windows 7 and VS2010).
I deployed test application on the test server (Windows Server 2003) and the result is the same. 
The print button doing nothing.
Is this the limitations of the trial version or I am doing something wrong?

Thanks

Igor
0
Steve
Telerik team
answered on 12 Oct 2010, 04:33 PM
Hi Igor,

Please check the demo examples installed with Telerik Reporting and compare what differs in your Silverlight application. You can place your reports in the CSharp.ReportLibrary class and see whether you are able to print them through our Silverlight app.

Sincerely yours,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Igor
Top achievements
Rank 1
answered on 14 Oct 2010, 05:31 AM
Hi Steve,

Unfortunately CSharp.SilverlightDemo.Web is not loading into vs2010
All other projects are loading ok including CSharp.ReportLibrary.
I can run CSharp.WinDemo and CSharp.WpfDemo except CSharp.SilverlightDemo.Web.
Print button working ok in winforms and wpf.
I copied CSharp.ReportLibrary into my solution and managed to run all reports, but still no luck.
I created another silverlight application inside CSharp folder and copied MainPage.xaml from SilverlightDemo into my silverlight project.
All reports are running from there as well but print button is stilll not working.

Please advice.

Regards

Igor
0
Steve
Telerik team
answered on 19 Oct 2010, 03:47 PM
Hi Igor,

I'm not sure what is the trouble with opening the examples in VS2010 - is there a specific error or warning/error upon converting the solution? Either way, I would appreciate if you follow the video Getting Started with the Silverlight Report Viewer for Telerik Reporting to create a brand new Silverlight application enabled to work with Telerik Reporting and see if the error persists. If this is the case, please open a support ticket and send us the problematic project so we can investigate it locally.
On a side note, do you have Acrobat Reader installed on the machine from which you're trying to print? If not, please install it as it is required for the print functionality to work.

Sincerely yours,
Steve
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Igor
Top achievements
Rank 1
answered on 21 Oct 2010, 05:29 AM
Hi Steve,

I have trouble only with the opening SilverlightDemo.Web example (Please see attached image).  The other examples opening ok.
The print button is already working.
The configuration settings in the web.config file for the WCF ReportService were a little bit different from the settings in the example.
 
Thanks for the help

Igor
0
Igor
Top achievements
Rank 1
answered on 10 Feb 2011, 03:31 AM
Hi,

I am currently having troubles when exporting reports to PDF, Excel.... The problem is that the title is disappearing from the report when exported.
I am working on silverlight web application and using telerik silverlight report viewer control.

If the title is hardcoded on the report then every thing is fine.  But when I create title in the code and then populate report parameter with it then it displayed on the report but disappearing on the pdf, excel .....  However if I print the report from the interface (report viewer) the title is there

Here is the code:

private void table1_NeedDataSource(object sender, EventArgs e) 
{
    
ReportParameterCollection parameterCollection = ReportParameters; 
    
DataSet dataSet = ReportBLL.GetReport(Convert.ToInt32(parameterCollection["MyParameterID"].Value.ToString())); 
    
(sender as Telerik.Reporting.Processing.Table).DataSource = dataSet;
    
    StringBuilder sb = new StringBuilder();
    sb.Append(parameterCollection[
"MyParam"].Value.ToString());
    sb.Append(
" Report");
 
    (sender 
as Telerik.Reporting.Processing.Table).Report.Parameters["Title"].Value = sb.ToString(); 
}

Thanks
Igor

0
Steve
Telerik team
answered on 15 Feb 2011, 02:03 PM
Hello Igor,

You should use the ItemDataBinding event of the report itself to set values for the parameters and not the NeedDataSource event of the Table which is already too late.

Kind regards,
Steve
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
0
Igor
Top achievements
Rank 1
answered on 15 Feb 2011, 10:32 PM
Hello Steve,

Thank you very much for your help.
This is solved my problem.

Kind Regards
Igor
Tags
General Discussions
Asked by
Marlos
Top achievements
Rank 1
Answers by
Steve
Telerik team
Igor
Top achievements
Rank 1
Share this question
or