I have an MVC ASP.Net 4.61 application. I have a report defined with a parameter and a filter. When I view the preview in the designer, the default parameter works fine and the report is filtered, but when I run the application and it is using RenderReport it appears that the filter is passing a null value to the query so no data is returned. If I put the parameter in a text box I see the Id. My id's are GUIDs stored in a varchar field. If I take off filtering it shows multiple records properly.
var PDFSource = new TypeReportSource(); PDFSource.TypeName = typeof(rptEmail).AssemblyQualifiedName; PDFSource.Parameters.Add(new Telerik.Reporting.Parameter("Id", id)); var ReportProcessor = new ReportProcessor(); var result = ReportProcessor.RenderReport("PDF", PDFSource, null); string PDFPath = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "App_Data", "Test.pdf");
File.WriteAllBytes(PDFPath, result.DocumentBytes);
