5 Answers, 1 is accepted
0
Hi Manuel,
Check the following links for more information on using the Silverlight report viewer:
Best wishes,
Steve
the Telerik team
Check the following links for more information on using the Silverlight report viewer:
- How to: Add report viewer to a Silverlight application
- Hosting WCF Service in IIS
- Getting Started with the Silverlight Report Viewer for Telerik Reporting video
Best wishes,
Steve
the Telerik team
Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!
0
Manuel
Top achievements
Rank 1
answered on 16 Dec 2011, 07:08 PM
Hi Steve,
I'm already created the report, but in another project, because it is impossible add reporting dll to silverlight application.
Now I want call that report by silverlight (Look at picture to see the structure)
How I can call my report in another project from silverlight project?
Thanks in advance.
I'm already created the report, but in another project, because it is impossible add reporting dll to silverlight application.
Now I want call that report by silverlight (Look at picture to see the structure)
How I can call my report in another project from silverlight project?
Thanks in advance.
0
Hi Manuel,
Once you create your class library and add reports to it, you are able to run these reports using all four viewers (Windows/Web Forms, WPF, Silverlight). You can first check out our examples which will give you more information on how we do things. You can find them in Start->All Programs->Telerik->Reporting Q3 2010->Visual Studio 2010 Examples->C#.
In order to view your report in your custom application you have to add the respective Telerik Reporting Viewer to your application as well. You can check how to do that for Silverlight in our How to: Add report viewer to a Silverlight application KB article. In there you will see that it is not needed to add Telerik.Reporting.dll to your Silverlight application but instead you have to add Telerik.ReportViewer.Silverlight.dll.
Please refer to the links my colleague has sent you and follow them exactly.
Greetings,
IvanY
the Telerik team
Once you create your class library and add reports to it, you are able to run these reports using all four viewers (Windows/Web Forms, WPF, Silverlight). You can first check out our examples which will give you more information on how we do things. You can find them in Start->All Programs->Telerik->Reporting Q3 2010->Visual Studio 2010 Examples->C#.
In order to view your report in your custom application you have to add the respective Telerik Reporting Viewer to your application as well. You can check how to do that for Silverlight in our How to: Add report viewer to a Silverlight application KB article. In there you will see that it is not needed to add Telerik.Reporting.dll to your Silverlight application but instead you have to add Telerik.ReportViewer.Silverlight.dll.
Please refer to the links my colleague has sent you and follow them exactly.
Greetings,
IvanY
the Telerik team
Q3’11 of Telerik Reporting is available for download. Register for the What's New in Data Tools webinar to see what's new and get a chance to WIN A FREE LICENSE!
0
Manuel
Top achievements
Rank 1
answered on 19 Dec 2011, 12:09 PM
Hi there,now I have this error:
I follow this tutorial: http://tv.telerik.com/watch/reporting/video/getting-started-with-telerik-report-viewer-silverlight but I can´t display my report in ReportViewer: Give me that error, see in attache please.
To help you, here are my webConfig:
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<appSettings>
<add key="PathReunioes" value="Reunioes" />
<!--<add key="PathReunioes" value="\\192.168.10.20\usa_esta" />-->
<add key="PathTemporarios" value="Temp" />
<add key="PathUpload" value="Upload" />
<add key="PathExtras" value="Extras" />
<add key="gravacaoAnexosBD" value="N" />
<add key="gravacaoDocumentosReuniaoBD" value="N" />
<add key="logotipo1" value="/Extras/logotipo1.png" />
<add key="logotipo1_X" value="100" />
<add key="logotipo1_Y" value="100" />
<add key="logotipo1_Largura" value="200" />
<add key="logotipo1_Altura" value="100" />
<add key="logotipo2" value="/Extras/logotipo2.png" />
<add key="logotipo2_X" value="100" />
<add key="logotipo2_Y" value="100" />
<add key="logotipo2_Largura" value="200" />
<add key="logotipo2_Altura" value="100" />
<add key="numeroMaximoAnexosSessaoUpload" value="6" />
<add key="numeroMaximoDocumentosReuniaoSessaoUpload" value="4" />
<add key="id_TipoEntidade_Sistema" value="4" />
<add key="numeroMaximoChamadas" value="3" />
<add key="caminhoExecutavelOpenOffice" value="C:\Program Files (x86)\OpenOffice.org 3\program\soffice.exe" />
<add key="timeoutOpenOffice" value="1000" />
<add key="cache" value="N" />
</appSettings>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
<add name="DomainServiceModule" preCondition="managedHandler" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</modules>
</system.webServer>
<system.web>
<httpRuntime maxRequestLength="10000000" executionTimeout="3600" />
<httpModules>
<add name="DomainServiceModule" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</httpModules>
<compilation debug="true" targetFramework="4.0" />
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" />
</system.web>
<connectionStrings>
<add name="ConexaoBDSGA" connectionString="data source=bd01;password=sga_demo123;persist security info=True;user id=SGA_DEMO" providerName="Oracle.DataAccess.Client" />
</connectionStrings>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="ReportServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="WebBehavior">
<webHttp />
</behavior>
</endpointBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
<services>
<service
name="Telerik.Reporting.Service.ReportService"
behaviorConfiguration="ReportServiceBehavior">
<endpoint
address=""
binding="basicHttpBinding"
contract="Telerik.Reporting.Service.IReportService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint
address="resources"
binding="webHttpBinding"
behaviorConfiguration="WebBehavior"
contract="Telerik.Reporting.Service.IResourceService"/>
<endpoint
address="mex"
binding="mexHttpBinding"
contract="IMetadataExchange" />
</service>
</services>
</system.serviceModel>
</configuration>
My XAML:
<navigation:Page x:Class="SGA.Views.SGASeguranca"
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"
mc:Ignorable="d"
xmlns:UC="clr-namespace:SGA.UserControls"
xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
d:DesignWidth="640" d:DesignHeight="480"
xmlns:telerik="clr-namespace:Telerik.ReportViewer.Silverlight;assembly=Telerik.ReportViewer.Silverlight"
Title="SGA - Segurança" Unloaded="Page_Unloaded">
<Grid x:Name="LayoutRoot">
<telerik:ReportViewer x:Name="ReportViewer1" Width="1000"
>
</telerik:ReportViewer>
</Grid>
</navigation:Page>
And my Code-Behind:
using System;
using System.Linq;
using System.Windows.Controls;
using System.Windows.Navigation;
using System.Windows;
namespace SGA.Views
{
public partial class SGASeguranca : Page
{
public SGASeguranca()
{
InitializeComponent();
try
{
ReportViewer1.Report = "SGA.Web, ReportClass, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null";
ReportViewer1.ReportServiceUri = new Uri("../ReportService.svc", UriKind.RelativeOrAbsolute);
}
catch(Exception e)
{
}
}
// Executes when the user navigates to this page.
protected override void OnNavigatedTo(NavigationEventArgs e)
{
}
private void Page_Unloaded(object sender, RoutedEventArgs e)
{
this.DataContext = null;
GC.Collect();
}
private void Button_Click(object sender, RoutedEventArgs e)
{
}
}
}
Thanks in advance.
I follow this tutorial: http://tv.telerik.com/watch/reporting/video/getting-started-with-telerik-report-viewer-silverlight but I can´t display my report in ReportViewer: Give me that error, see in attache please.
To help you, here are my webConfig:
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<appSettings>
<add key="PathReunioes" value="Reunioes" />
<!--<add key="PathReunioes" value="\\192.168.10.20\usa_esta" />-->
<add key="PathTemporarios" value="Temp" />
<add key="PathUpload" value="Upload" />
<add key="PathExtras" value="Extras" />
<add key="gravacaoAnexosBD" value="N" />
<add key="gravacaoDocumentosReuniaoBD" value="N" />
<add key="logotipo1" value="/Extras/logotipo1.png" />
<add key="logotipo1_X" value="100" />
<add key="logotipo1_Y" value="100" />
<add key="logotipo1_Largura" value="200" />
<add key="logotipo1_Altura" value="100" />
<add key="logotipo2" value="/Extras/logotipo2.png" />
<add key="logotipo2_X" value="100" />
<add key="logotipo2_Y" value="100" />
<add key="logotipo2_Largura" value="200" />
<add key="logotipo2_Altura" value="100" />
<add key="numeroMaximoAnexosSessaoUpload" value="6" />
<add key="numeroMaximoDocumentosReuniaoSessaoUpload" value="4" />
<add key="id_TipoEntidade_Sistema" value="4" />
<add key="numeroMaximoChamadas" value="3" />
<add key="caminhoExecutavelOpenOffice" value="C:\Program Files (x86)\OpenOffice.org 3\program\soffice.exe" />
<add key="timeoutOpenOffice" value="1000" />
<add key="cache" value="N" />
</appSettings>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
<add name="DomainServiceModule" preCondition="managedHandler" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</modules>
</system.webServer>
<system.web>
<httpRuntime maxRequestLength="10000000" executionTimeout="3600" />
<httpModules>
<add name="DomainServiceModule" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</httpModules>
<compilation debug="true" targetFramework="4.0" />
<pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" />
</system.web>
<connectionStrings>
<add name="ConexaoBDSGA" connectionString="data source=bd01;password=sga_demo123;persist security info=True;user id=SGA_DEMO" providerName="Oracle.DataAccess.Client" />
</connectionStrings>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="ReportServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="WebBehavior">
<webHttp />
</behavior>
</endpointBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
<services>
<service
name="Telerik.Reporting.Service.ReportService"
behaviorConfiguration="ReportServiceBehavior">
<endpoint
address=""
binding="basicHttpBinding"
contract="Telerik.Reporting.Service.IReportService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
<endpoint
address="resources"
binding="webHttpBinding"
behaviorConfiguration="WebBehavior"
contract="Telerik.Reporting.Service.IResourceService"/>
<endpoint
address="mex"
binding="mexHttpBinding"
contract="IMetadataExchange" />
</service>
</services>
</system.serviceModel>
</configuration>
My XAML:
<navigation:Page x:Class="SGA.Views.SGASeguranca"
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"
mc:Ignorable="d"
xmlns:UC="clr-namespace:SGA.UserControls"
xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
d:DesignWidth="640" d:DesignHeight="480"
xmlns:telerik="clr-namespace:Telerik.ReportViewer.Silverlight;assembly=Telerik.ReportViewer.Silverlight"
Title="SGA - Segurança" Unloaded="Page_Unloaded">
<Grid x:Name="LayoutRoot">
<telerik:ReportViewer x:Name="ReportViewer1" Width="1000"
>
</telerik:ReportViewer>
</Grid>
</navigation:Page>
And my Code-Behind:
using System;
using System.Linq;
using System.Windows.Controls;
using System.Windows.Navigation;
using System.Windows;
namespace SGA.Views
{
public partial class SGASeguranca : Page
{
public SGASeguranca()
{
InitializeComponent();
try
{
ReportViewer1.Report = "SGA.Web, ReportClass, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null";
ReportViewer1.ReportServiceUri = new Uri("../ReportService.svc", UriKind.RelativeOrAbsolute);
}
catch(Exception e)
{
}
}
// Executes when the user navigates to this page.
protected override void OnNavigatedTo(NavigationEventArgs e)
{
}
private void Page_Unloaded(object sender, RoutedEventArgs e)
{
this.DataContext = null;
GC.Collect();
}
private void Button_Click(object sender, RoutedEventArgs e)
{
}
}
}
Thanks in advance.
0
Manuel
Top achievements
Rank 1
answered on 19 Dec 2011, 12:30 PM
OK, Now works good.
Thanks.
Thanks.