I have a main report having subreport whose reportsource has to be set dynamically based on the field value (Response type) of the sqldatasource of mainreport ,
I tried to get the value of Responsetype from the dataobject in detail_itemdatabinding event and stored in a variable .
I subreport_itendataBinding event tried to set Telerik.Reporting.SubReport.reportsource to new object of TypeReportSource class, then invalidcastexception is ocurring
Unable to cast object of type 'Telerik.Reporting.Processing.SubReport' to type 'Telerik.Reporting.SubReport
'Telerik.Reporting.Processing.SubReport does not have REportsource property so i used Telerik.Reporting.SubReport, but exception is happening
Kindly assist on this issue
public partial class InterviewReport : Telerik.Reporting.Report
{
protected string reportSourceValue = "";
public InterviewReport()
{
//
// Required for telerik Reporting designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
private void detail_ItemDataBinding(object sender, System.EventArgs e)
{
Telerik.Reporting.Processing.DetailSection item =
(Telerik.Reporting.Processing.DetailSection)sender;
object o = item.DataObject["ResponseType"];
if (o is string)
{
if (string.Equals(o, "Text Response"))
{
this.reportSourceValue = "ReportLibrary.Reports.Response, ReportLibrary, Version=1.0.0.0, Culture=neutral, " +
"PublicKeyToken=null";
}
else if (string.Equals(o, "Check Box"))
{
this.reportSourceValue = "ReportLibrary.Reports.ReportCheckBox, ReportLibrary, Version=1.0.0.0, Culture=neutral, " +
"PublicKeyToken=null";
}
}
}
private void subReport1_ItemDataBound(object sender, System.EventArgs e)
{
// Telerik.Reporting.Processing.ReportItemBase item =
// (Telerik.Reporting.Processing.ReportItemBase)sender;
Telerik.Reporting.SubReport sub = (Telerik.Reporting.SubReport)sender;
Telerik.Reporting.TypeReportSource typeReportSource2 = new Telerik.Reporting.TypeReportSource();
typeReportSource2.Parameters.Add(new Telerik.Reporting.Parameter("LocalEngID", "= Parameters.LocalEngID.Value"));
typeReportSource2.Parameters.Add(new Telerik.Reporting.Parameter("InterviewQuestionsID", "=Fields.InterviewQuestionsID"));
typeReportSource2.TypeName = reportSourceValue;
sub.ReportSource = typeReportSource2;
}
}
Regards,
Mary Jain
Greetings!
I need help with receiving parameters from a report. The following code allows me to alter the DataSource of such Report, however I still need to intercept and alter the parameters used on that report.
01.public Telerik.Reporting.ReportSource Resolve(string report)02. {03. ReportSource reportInstance;04. 05. //retrieve an instance of the report06. var connectionString = "Data Source=OurServer;Initial Catalog=OurDataBase;User ID=xxxxxxxx;xxxxxxx;";07. ReportConnectionStringManager csm = new ReportConnectionStringManager(connectionString);08. 09. var appPath = HttpContext.Current.Server.MapPath("~/");10. var reportsPath = Path.Combine(appPath, "Reports");11. var uri = Path.Combine(reportsPath, report);12. 13. var sourceReportSource = new UriReportSource() { Uri = uri };14. 15. reportInstance = csm.UpdateReportSource(sourceReportSource);16. 17. return reportInstance;18. }Is it possible to receive and modify parameters from the report call utilizing HttpContext.Current ? Or is there a Telerik Class/Method that allows me to do so?
Thanks in advance! Best Regards.
I'm developing a WPF application, using Visual Studio 2017 Community and SQL Server 2.016. The version of the report generator is R2 2017 11.1.17.503
The strange thing is that the data appears when the DataSource is configured. However, when you run Preview, the detail line data is invisible.
My stored procedure uses a temporary table and creates the SQL command dynamically.
Could someone please help?

Hello! I have installed the Angular 4 component. My Angular project is up and running, but the component is acting funny. It isn't even TRYING to connect to the report server before throwing the classic "Error loading the report viewer's templates. " error. I've seen all the FAQ stuff about making sure that the reporting api is running, and it definitely is. The weird thing is that the component doesn't even try to connect. I'm monitoring the requests in the browser, and nothing ever goes toward the reporting api at all.
I'd love to be able to use this component, but I'm having trouble even getting off the ground with it.
Yes, I have Angular 4 and jQuery 3.2.1. I installed the component off NPM.
Thanks for any help you can provide!
- Chris
The assembly "MyLib, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" is not permitted to be used by an ObjectDataSource component. Please include it in an AssemblyReferences element in the Telerik.Reporting configuration section of your application configuration fileHello,
I have a Polar graph with some data points, I have formatting rules for these data points so they change colors based on some data. Howevever, when the points are on the northern axis and in this middle circle they have the correct color but the axis looks like its being rendered ON TOP of the point. How do i fix this?
