Reporting with Silverlight

4 posts, 0 answers
  1. Pierre
    Pierre avatar
    212 posts
    Member since:
    Apr 2007

    Posted 20 May 2010 Link to this post

    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?
  2. john baker
    john baker avatar
    2 posts
    Member since:
    May 2010

    Posted 21 May 2010 Link to this post

    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?
  3. DevCraft banner
  4. Pierre
    Pierre avatar
    212 posts
    Member since:
    Apr 2007

    Posted 21 May 2010 Link to this post

    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.
  5. john baker
    john baker avatar
    2 posts
    Member since:
    May 2010

    Posted 26 May 2010 Link to this post

    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
Back to Top