Hi,
I have a custom resolver working with my html report viewer to display trdx's just fine. Some reports though are not trdx though so I will create these purely in code (in my resolver?) and pass the report to the viewer. I have tried the code below and it seems to work but I just need to confirm that I am doing it the correct way?
ie. is it correct to return a report object instance from the custom resolver?
public class MyResolver : IReportResolver{ public Telerik.Reporting.ReportSource Resolve(string report) { Report rpt = new Report(); ObjectDataSource ods = new ObjectDataSource(); ods.DataSource = GetSomeData(); rpt.DataSource = ods; /* ...code to set up report items... */ return rpt;} }
