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

Reporting with Silverlight

3 Answers 130 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Pierre
Top achievements
Rank 2
Iron
Iron
Pierre asked on 20 May 2010, 09:19 PM
Hi, I try to do the same thing you do on one of your Telerik video. I am using silverlight 4 with RIA service.

I use the Business Application templace and add a ReportLibrary in the solution.
In this ReportLibrary I add a simple report named BasicReport.cs

Each time the RaportViewer try to load the rapport i got this error:
Could not load file or assembly 'ReportLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

Here my test page:
<navigation:Page   
  x:Class="GestionMembre.About"   
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   
  xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
  xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation" 
  xmlns:RepportViewer="clr-namespace:Telerik.ReportViewer.Silverlight;assembly=Telerik.ReportViewer.Silverlight" 
  mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480"    
  Style="{StaticResource PageStyle}" xmlns:riaControls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.DomainServices" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">  
 
    <Grid x:Name="LayoutRoot">  
        <RepportViewer:ReportViewer x:Name="xReportViewer" ReportServiceUri="../ReportService.svc" Report="ReportLibrary.BasicReport, ReportLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null">  
        </RepportViewer:ReportViewer> 
          
    </Grid> 
 
</navigation:Page> 


I test with Reflector to be sure of my assembly name...

Any suggestion?

3 Answers, 1 is accepted

Sort by
0
john baker
Top achievements
Rank 1
answered on 21 May 2010, 09:29 AM
Hi,

I'm try to get this working in silverlight and getting exactly the same problem. I emailed it in to their support desk who said they can't reproduce the error. Looking at their best practices page I realised I hadn't added a reference to the class library from the .web project but couidn't do the same from the silverlight bit as the class library is not a silverlight project. However, it still errors.

Have you found an answer yet?
0
Pierre
Top achievements
Rank 2
Iron
Iron
answered on 21 May 2010, 01:35 PM
No, I have not found solution. The silverlight repport sample work! I can see what i am missing from the video, but in the saple Telerik do not "load" the RapportViewwer the same way. But I can put breakpoint on the sample and I don't understand well the load process of the telerik sample.
0
john baker
Top achievements
Rank 1
answered on 26 May 2010, 04:46 PM
Hi Pierre,

I have not had another look at telerik since your last post but having grappled with Perpetuum all week I have had some success with that at last.

Joie de vivre


Regards
John
Tags
General Discussions
Asked by
Pierre
Top achievements
Rank 2
Iron
Iron
Answers by
john baker
Top achievements
Rank 1
Pierre
Top achievements
Rank 2
Iron
Iron
Share this question
or