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

Silverlight ReportViewer missing icons

1 Answer 89 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Boštjan
Top achievements
Rank 1
Boštjan asked on 07 Nov 2012, 11:04 AM
Hello,

I*m using:
Telerik Reporting 2012 Q3 - Version=6.2.12.1017

Visual Studio 2010
Silverlight 5

Problem:
Icons are missing when I want to show the report in a window programatically:

var report = new ReportViewer
    {
        Report = "Test.MyReport, Test",
        ReportServiceUri = new Uri("../ReportService.svc", UriKind.Relative)
    };
var grid = new Grid();
grid.Children.Add(report);
var window = new ChildWindow
                 {
                     Content = grid
                 };
 window.Show();

Example of a request for an image that is automatically made:
  1. Request URL:
    http://localhost:3798/Telerik.ReportViewer.Silverlight;component/images/Print.png
  2. Request Method:
    GET
  3. Status Code:
    503 Service Unavailable



If I try this in XAML then all icons are loaded (no extra requests are made like the one above):
<controls:ChildWindow x:Class="Views.MyChildWindow"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:telerik="clr-namespace:Telerik.ReportViewer.Silverlight;assembly=Telerik.ReportViewer.Silverlight">
    <Grid x:Name="LayoutRoot">
        <telerik:ReportViewer
            x:Name="ReportTestViewPrint"
            ReportServiceUri="../ReportService.svc"
            Report="Test.MyReport, Test">
        </telerik:ReportViewer>
    </Grid>
</controls:ChildWindow>
 
var window = new MyChildWindow();
window.Show();

I'm doing something wrong?

Thanks in advance.

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 12 Nov 2012, 09:57 AM
Hello BoĊĦtjan,

We have not been contacted with such a problem before and we have not been able to reproduce it locally. The icons of the Silverlight report viewer are not server through the service, they are part of the xap file, so the behavior you describe is really strange.

Thus, we would appreciate if you prepare and send us a project that exhibits the problem in a support ticket. This way we can review it and advise you accordingly.

Kind regards,
Steve
the Telerik team

HAPPY WITH TELERIK REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

Tags
General Discussions
Asked by
Boštjan
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or