I want to set the DataSource parameters at Webforms runtime so I created a DataSource with the code below. Hos do I attached this to the report before setting the ReportViewer reportSource? I can create a Report object and set the DataSource but how do I assign it to the reportsource which is set to the viewer?
Telerik.Reporting.SqlDataSource sqlDataSource = new Telerik.Reporting.SqlDataSource();
sqlDataSource.SelectCommand = "SELECT * FROM VerifiedComponents WHERE ItemNumber = @ItemNumber";
sqlDataSource.Parameters.Add("@ItemNumber", System.Data.DbType.String, "14545454545");
Telerik.ReportViewer.Html5.WebForms.ReportSource reportSource = new Telerik.ReportViewer.Html5.WebForms.ReportSource();
reportSource.IdentifierType = Telerik.ReportViewer.Html5.WebForms.IdentifierType.TypeReportSource;
reportSource.Identifier = typeof(Report1).AssemblyQualifiedName;
reportViewer1.ReportSource = reportSource;
I'm designing a Report in the Standalone Report Designer and consuming it in a WPF application.
I want to anchor an image to the bottom of the report details section. To this end I have set the anchoring property = bottom.
When I view the report in the WPF application in Print Preview mode the image appears half way up the page (the same is true when it is printed), however, If I switch the Report Viewer to interactive view the image appears anchored to the bottom of the page as desired.
How can I get the image to be anchored to the bottom of the page when printed ?
Hi,
I'm trying to apply a background image to the Plot Area of a Scatter Graph. The image loads fine but i can't find the option to change it's size to scalonate to picturebox size.
I'm using Telerik 13.0.19.222
Thanks,
Nuno
I'm trying to modify my reports using Telerik Report Designer R3 2020, but every time I got a Telerik has stopped working.
I opened a new instance in VS 2019 to debug the program and this what I got:
Unhandled exception at 0x00007FFC5891DACE (ucr
tbase.dll) in Telerik.ReportDesigner.exe: Fatal program exit requested.Hello,
I want to display Several pie charts like the attached sample.
Each diagram represents a group and shows the value of the contribution of each component to the group total.
I can't figure out how to add these diagrams fed from the same data source all at once.
Please advise me any way to address the requirement.
Regards
Hi,
I've poured over numerous documents for many hours and can not find a resolution.
Inside the TRDX file there is a SQL statement, it is hard coded to 'WHERE ProjectId = 1234'
When I create a report parameter and add to the UriReportSource, it never works.
The SqlDataSource has this parameter
<Parameters>
<SqlDataSourceParameter DbType="Int32" Name="@ProjectId" />
</Parameters>
At the bottom of the .trdx file, it has this parameter.
<ReportParameters>
<ReportParameter Name="ProjectId" Type="Integer" Visible="True">
<Value>
<String>= Parameters.ProjectId.Value</String>
</Value>
</ReportParameter>
</ReportParameters>
C# on reporting view page,
Telerik.Reporting.Parameter p = new Telerik.Reporting.Parameter();
p.Name = "ProjectId";
p.Value = 1234;
uriReportSource.Parameters.Add(p);
rpvCustom.ReportSource = uriReportSource;
Any help is greatly appreciated, my client is creating these reports with the standalone designer, but we can only get results with hard coding.
I have two fields that go into a DocumentMapText so they will appear in the document map of the report viewer.
When I put them on one line, it is too long and jagged looking. I've tried separating them with "<br/>" but that just renders in a span.
Is there anyway of doing this?
Thanks.
Current project uses the Telerik Report library.
I've been working with the Documents.SpreadsheetStream and Documents.Spreadsheet methods to by-pass the report templates. Finding my design plan has run into a design issue when exporting directly to excel. In the Templates can create a much richer view for the end-user.
However the customer wants to export directly to Excel with out having to view the report then click on the export button. (See the attach jpg file for screen shot of the current interface). I think I will add both options for the end user to select view or export, just incase they rather not have the file. Or if another customer prefers the view...
My question, Can I run the process to run the Telerik report template I created and pass all parameter that will cause the export to Excel directly?