or
Telerik.ReportViewer.Silverlight.ReportViewer rep = new Telerik.ReportViewer.Silverlight.ReportViewer();rep.Report = "InoTrans.Web.Report1, InoTrans.Web";Uri uribase = Application.Current.Host.Source;rep.ReportServiceUri = new Uri(uribase, "../Services/ReportService.svc");(((App)Application.Current).RootPage as MainPage).frmContent.Content = rep;namespace InoTrans.Web{ using System; using System.ComponentModel; using System.Drawing; using System.Windows.Forms; using Telerik.Reporting; using Telerik.Reporting.Drawing; using InoTrans.Web.Services; using System.Collections.Generic; /// <summary> /// Summary description for Report1. /// </summary> public partial class Report1 : Telerik.Reporting.Report { public Report1() { // // Required for telerik Reporting designer support // InitializeComponent(); // // TODO: Add any constructor code after InitializeComponent call // List<EntLtd> list = new List<EntLtd>(); for (int i = 0; i < 100; i++) { EntLtd ent = new EntLtd(); ent.sLtdAdrOrt = "Testort"; list.Add(ent); } this.DataSource = list; } }}<?xml version="1.0" encoding="utf-8"?><!-- Weitere Informationen zum Konfigurieren der ASP.NET-Anwendung finden Sie unter --><configuration> <system.diagnostics> <sources> <source name="System.ServiceModel.MessageLogging" switchValue="Warning, ActivityTracing"> <listeners> <add type="System.Diagnostics.DefaultTraceListener" name="Default"> <filter type="" /> </add> <add name="ServiceModelMessageLoggingListener"> <filter type="" /> </add> </listeners> </source> <source name="System.ServiceModel" switchValue="Warning, ActivityTracing" propagateActivity="true"> <listeners> <add type="System.Diagnostics.DefaultTraceListener" name="Default"> <filter type="" /> </add> <add name="ServiceModelTraceListener"> <filter type="" /> </add> </listeners> </source> </sources> <sharedListeners> <add initializeData="C:\DotNet\WebPfl-VS2010\InoTrans\InoTrans.Web\Web_messages.svclog" type="System.Diagnostics.XmlWriterTraceListener, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="ServiceModelMessageLoggingListener" traceOutputOptions="Timestamp"> <filter type="" /> </add> <add initializeData="C:\DotNet\WebPfl-VS2010\InoTrans\InoTrans.Web\Web_tracelog.svclog" type="System.Diagnostics.XmlWriterTraceListener, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="ServiceModelTraceListener" traceOutputOptions="Timestamp"> <filter type="" /> </add> </sharedListeners> <trace autoflush="true" /> </system.diagnostics> <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> <validation validateIntegratedModeConfiguration="false" /> </system.webServer> <system.web> <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"> <assemblies> <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> </assemblies> </compilation> <authentication mode="Forms" > <forms name=".InoTrans_ASPXAUTH" /> </authentication> </system.web> <connectionStrings> <add name="WInoTransportEntities" connectionString="................" /> <add name="WInoTransportEntities1" connectionString="................" /> <add name="WInoTransportEntities2" connectionString="................" /> </connectionStrings> <system.serviceModel> <diagnostics wmiProviderEnabled="true" performanceCounters="ServiceOnly"> <messageLogging logMalformedMessages="true" logMessagesAtServiceLevel="false" logMessagesAtTransportLevel="true" /> </diagnostics> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> <bindings> <basicHttpBinding> <binding name="BasicHttpBindingConfig" closeTimeout="01:00:00" openTimeout="01:00:00" receiveTimeout="01:00:00" sendTimeout="01:00:00" maxBufferSize="5000000" maxReceivedMessageSize="5000000"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="5000000" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <security mode="Transport" /> </binding> </basicHttpBinding> <webHttpBinding> <binding name="WebHttpBindingConfig" closeTimeout="01:00:00" openTimeout="01:00:00" receiveTimeout="01:00:00" sendTimeout="01:00:00" maxBufferSize="5000000" maxReceivedMessageSize="5000000"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="5000000" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <security mode="Transport" /> </binding> </webHttpBinding> </bindings> <services> <service behaviorConfiguration="ReportServiceBehavior" name="Telerik.Reporting.Service.ReportService"> <endpoint address="" binding="basicHttpBinding" bindingConfiguration="BasicHttpBindingConfig" contract="Telerik.Reporting.Service.IReportService" /> <endpoint address="resources" behaviorConfiguration="WebBehavior" binding="webHttpBinding" bindingConfiguration="WebHttpBindingConfig" contract="Telerik.Reporting.Service.IResourceService" /> <endpoint address="mex" binding="mexHttpsBinding" bindingConfiguration="" contract="IMetadataExchange" /> <host> <timeouts closeTimeout="01:00:00" openTimeout="01:00:00" /> </host> </service> </services> <behaviors> <serviceBehaviors> <behavior name="ReportServiceBehavior"> <serviceMetadata httpGetEnabled="false" /> <serviceDebug includeExceptionDetailInFaults="false" /> </behavior> </serviceBehaviors> <endpointBehaviors> <behavior name="WebBehavior"> <webHttp /> </behavior> </endpointBehaviors> </behaviors> </system.serviceModel></configuration>I'm using Telerik Report Q1 2009 and would like to know the best way to populate this report with xml data?
I'm using VS2008, C# and Oracle as my back end.
Within the report I'm not sure also how to reference it once the xml is passed in?
I tried the following
| ReportXML rXML = new ReportXML(); |
| rXML.DataSource = "<XmlDS><table1><col1>Value1</col1></table1><table1><col1>Value2</col1></table1></XmlDS>"; |
| rvFreqReport.Report = rXML; |
| rvFreqReport.RefreshReport(); |