Telerik Forums
Reporting Forum
1 answer
166 views
Hi! Is there anyway to use a multivalue parameter as data source of a list or table?
Katia
Telerik team
 answered on 03 Feb 2017
1 answer
89 views

Hello,

I want to add new windows form with Telerik Report Viewer form, but it appears me only the version telerik report viewer form R2 2016 and it says that incorrect version because i have and R1 2017 but it doesn't appers me in the common items.

This is my button click:

Private Sub btnRaport_Click(sender As Object, e As EventArgs) Handles btnRaport.Click
        dgvOperatii.Hide()
        rptOperatii.Visible = True
        If rptOperatii.Visible = True Then
            'Dim reportSource = New Telerik.Reporting.UriReportSource()
            'ReportSource.Uri = "E:\Proiecte\SIG\TEST\Reports\Report_OperatiiStoc.trdp"
            rpt1.DataSource = dgvOperatii.DataSource
            rpt1.ReportParameters("DenumireFirma").Value = Detalii_Firma.Denumire
            rpt1.ReportParameters("Nume_Gestiune").Value = CStr(cboDepo_From.SelectedValue).ToString
            rpt1.ReportParameters("DInceput").Value = dt_Inceput.Value
            rpt1.ReportParameters("DSfarsit").Value = dt_Sfarsit.Value
            'rptOperatii.ReportSource = rpt1
            rptOperatii.RefreshReport()
            rptOperatii.Show()
        Else
            dgvOperatii.Show()
        End If
    End Sub

You can help me with this. I'm in a deadline and I'm in a hurry with it.

 

P.S The conclusion is that i need to make a Telerik report viewer on a click button after the gridview is loading.

Thank you very much.

 

Nasko
Telerik team
 answered on 02 Feb 2017
1 answer
868 views

Telerik Team,

 

I am doing a POC to evaluate the Telerik DevArt Reporting for our application development. I am now working on report design that has multiple group header sections. I am creating this Telerik report based on the existing Crystal Report design which has multiple group headers. Please see the attached file for details. I do not see any group box or grouping feature on the Telerik report designer in trial version. How can I achieve the same design thru Telerik Reporting designer trial version. It will help me if you could provide the design tips to generate the same design as attached. Thanks in advance.

   

Regards,

Naga

Katia
Telerik team
 answered on 02 Feb 2017
7 answers
1.2K+ views
When working with picturebox, which sizing is "ScaleProptional", can we set alignment to be at right? dock doesn't seems to be working
Katia
Telerik team
 answered on 01 Feb 2017
0 answers
436 views

Hello,

I'm getting the data for the report with an object.

I've tried to save the data in a Base-64 string and load it the next time through the Base-64 string.

But the report doesn't show the data it the Table (I'm getting the no data message in the report).

I use this for getting the data for my table

this.dataTable.DataSource = DocumentItems;

The code used for getting the data from a Base-64 string is in the attached image.

Luka
Top achievements
Rank 1
 asked on 01 Feb 2017
1 answer
57 views

Hi,

i am facing a problem setting the reportsource of a Sub - Sub Report.

I am trying it like this....

 

using (System.Xml.XmlReader xmlReader = System.Xml.XmlReader.Create(reportingPath + report_Name, settings))
{
    Telerik.Reporting.XmlSerialization.ReportXmlSerializer xmlSerializer = new Telerik.Reporting.XmlSerialization.ReportXmlSerializer();
    ExportReport = (Telerik.Reporting.Report) xmlSerializer.Deserialize(xmlReader);
    if ((ExportReport != null))
    {
        ExportReport.ReportParameters["Id"].Value = Id;
 
        // Subreport for Column1
        if ((ExportReport.Items.Find("SubReport_Column1", true)).Count() == 1)
        {
            Telerik.Reporting.SubReport SubReport_Column1 = (Telerik.Reporting.SubReport) ExportReport.Items.Find("SubReport_Column1", true)[0];
            ((Telerik.Reporting.UriReportSource) (SubReport_Column1.ReportSource)).Uri = reportingPath + SubReport_Colum1_Name;
                         
            if ((SubReport_Column1.Items.Find("SubReport_Column1_Details", true)).Count() == 1)
            {
                Telerik.Reporting.SubReport Report_SubReport_Column1_Details = (Telerik.Reporting.SubReport) SubReport_Column1_Details.Items.Find("Column1_Details", true)[0];
                ((Telerik.Reporting.UriReportSource) (Report_SubReport_Column1_Details .ReportSource)).Uri = reportingPath + report_Column1_Details;
            }
        }
         
        ...

 

Hope somebody can help me out?

I am not sure, what is the right way to set the SubReport.URI of the SubReport.
    if ((SubReport_Column1.Items.Find("SubReport_Column1_Details", true)).Count() == 1)

 

 

 

 

Lars
Top achievements
Rank 1
 answered on 01 Feb 2017
1 answer
223 views
I am having difficulty creating a chart for the values in the attached Excel. Column A is the different types of measurements, column B is the measure (scale 1 - 10) and column C is the measurement date. I want to plot these values on a chart so that the y-axis has a scale of 1 - 10 and the x-axis has the dates. I'd also like different colors or glyphs to represent the different types of values.
Katia
Telerik team
 answered on 01 Feb 2017
3 answers
428 views
I've got a simple 5-column report and I can't figure out how to swap the column order.  In a designer UI this *should* be as simple as dragging a column to the left or right, but I can't figure out what Telerik's Report Designer wants.  Attached is a snapshot of the simple report.
Katia
Telerik team
 answered on 31 Jan 2017
1 answer
206 views

I downloaded the "AngularJSDemo" project and it works out of the box.  Still in my (TypeScript) AngularJS project does not.  I am using the sample directive declaration:

iapp.directive('report', function () {
   return {
      restrict: 'EA',
      transclude: 'true',
      scope: {
         name: '@',
         parameters: '@'
      },
      template: "",
      link: function (scope:any, element, attrs) {
         //create the viewer object first, can be done in index.html as well
         var reportViewer = $("#reportViewer1").data("telerik_ReportViewer");
         if (!reportViewer) {
            $("#reportViewer1").toggle();
           
            $(document).ready(function () {
               var d: any = $("#reportViewer1");
               var f: Function = $("#reportViewer1")["telerik_ReportViewer"];
               //$("#reportViewer1").telerik_ReportViewer({
               f({
                  error: function (e, args) {
                     alert('Error from report directive:' + args);
                  },
                  reportSource: {
                     report: scope.name,
                     parameters: JSON.parse(scope.parameters),
                  },
                  serviceUrl: '/api/reports/',
                  scale: 1.0,
                  ready: function () {
                     alert("up's");
                  },
               })
            });
         }
         //on state change update the report source
         scope.$watch('name', function () {
            var reportViewer = $("#reportViewer1").data("telerik_ReportViewer");
            if (reportViewer) {
               var rs = reportViewer.reportSource();
               if (rs && rs.report)
                  if (rs.report != scope.name &&
                     rs.parameters != scope.parameters) {
                     reportViewer.reportSource({
                        report: scope.name,
                        parameters: JSON.parse(scope.parameters),
                     });
                  }
            }
         });
      }
   }
});

and a similar template as follows:

<div class="container-fluid" ng-controller="reportViewModel">
   <!--<h2>{{Title}}</h2>-->
   <div class="spacing">Title:  {{report.settings.title}}</div>
   <div class="spacing">Name: {{report.settings.reportName}}</div>
   <div class="spacing">Params: {{report.settings.reportParams}}</div>
   <hr />
   <report name="{{report.settings.reportName}}" parameters="{{report.settings.reportParams}}"></report>
</div>

-----------------------------------------------------

All looks good, and I can see that the "link" and "$watch" functions being called as expected, still the report viewer does not show-up!  I do see that when the "$watch" (for "name") gets triggered that the "var reportViewer = $("#reportViewer1").data("telerik_ReportViewer");" always returns "undefined" (reportViewer is undefined).  if I go to the browser and type: ".../api/reports/" I do get to the controller (as expected), but it should be called upon initialization (within link") but it never happens... 

If someone have a bit of a clue what else I should be looking for it will be nice to know, until then... thanks.

Ed.

 

Katia
Telerik team
 answered on 30 Jan 2017
3 answers
440 views

I have a MVC application and am trying to pass parameters from client side to objectdatasource.

The client code is like:

 @(Html.TelerikReporting().ReportViewer()
                      .Id("report-viewer1")
                      .ServiceUrl(Url.Content("~/api/reportservice/"))
                      .TemplateUrl(Url.Content("~/content/reportviewer/templates/telerikReportViewerTemplate.html"))

                        ....................

                     .ReportSource("report.trdp", new Dictionary<string, object>() { { "parameter1", "value1" }, { "parameter2", "value2" } })

                )

report.trdp is created with Reporting Designer.  it is configured to get the data from objectdatasource (binding to the extension assembly and function).

The question is: how can I pass "parameter1" and "parameter2" from the client side to the extension function at the server side to limit the data query?

Jerry
Top achievements
Rank 1
 answered on 30 Jan 2017
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?