Telerik Forums
Reporting Forum
2 answers
459 views

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;     

james
Top achievements
Rank 1
 answered on 25 Mar 2021
2 answers
295 views

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 ? 

 

Dale
Top achievements
Rank 1
 answered on 25 Mar 2021
2 answers
112 views

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

Neli
Telerik team
 answered on 24 Mar 2021
2 answers
1.8K+ views

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 (ucrtbase.dll) in Telerik.ReportDesigner.exe: Fatal program exit requested.
Abdechafi
Top achievements
Rank 1
Veteran
 answered on 24 Mar 2021
8 answers
597 views

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

 

Todor
Telerik team
 answered on 24 Mar 2021
6 answers
529 views
Hi, I have a reportviewer with a couple of reports but I need to export them in a single worksheet, is that posible, or what's the right approach. Thanks
Mads
Telerik team
 answered on 23 Mar 2021
3 answers
454 views

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.

 

 

thelostleaf
Top achievements
Rank 2
 answered on 19 Mar 2021
1 answer
113 views

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.

Dimitar
Telerik team
 answered on 18 Mar 2021
5 answers
340 views

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?

 

herb
Top achievements
Rank 1
Veteran
Iron
 answered on 18 Mar 2021
27 answers
1.7K+ views
Hi

In the web report viewer, I'd ideally like to limit the user to being to export to PDF, and remove .tiff and .mht export functionality. Ideally as well there'd be no drop down list with the formats in - just an export button.

I suspect I'm going to have to write this functionality myself (as I can remove the export stuff from the report viewer, and I can generate the PDF from a raw Report object into a byte array, and hence send it to the client) - but before I implement that I wanted to check if it was built in.

Thanks

Tom    
Neli
Telerik team
 answered on 18 Mar 2021
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?