Hi, i'm developing a Silverlight solution that use ReportView. In my mind, ill create reports on stand alone Report Designer and save the .trdx files on specific folder. Using a default Report Resolver, i didn't find how to do this. So, i created a custom Report Resolver like on Telerik Report Documentation. Perfect, the report viewer could connect with my ReportService using my custom resolver BUT, i don't know how to deal with it. There is no pratical example of it. Here is the code of my custom report resolver, it works partially, because it gets the report, send and on the report viewer didn't show.
namespace Services.Code_Test
{
using Telerik.Reporting.Service;
using Telerik.Reporting;
using System.IO;
public class CustomReportService : ReportService
{
static readonly IReportResolver resolver = new ReportResolver();
public CustomReportService()
{
this.ReportResolver = resolver;
}
}
public class ReportResolver : IReportResolver
{
public ReportSource Resolve(string report)
{
string path = string.Format(@"D:\Reports\{0}.trdx", report);
UriReportSource uriReportSource = new UriReportSource();
uriReportSource.Uri = report;
return uriReportSource;
}
}
}
What i am doing wrong?
namespace Services.Code_Test
{
using Telerik.Reporting.Service;
using Telerik.Reporting;
using System.IO;
public class CustomReportService : ReportService
{
static readonly IReportResolver resolver = new ReportResolver();
public CustomReportService()
{
this.ReportResolver = resolver;
}
}
public class ReportResolver : IReportResolver
{
public ReportSource Resolve(string report)
{
string path = string.Format(@"D:\Reports\{0}.trdx", report);
UriReportSource uriReportSource = new UriReportSource();
uriReportSource.Uri = report;
return uriReportSource;
}
}
}
What i am doing wrong?