Telerik Forums
Reporting Forum
3 answers
2.0K+ views
    List<ReportVentasFamiliaDto> dataSource = new List<ReportVentasFamiliaDto>();
    dataSource.Add(new ReportVentasFamiliaDto()
    {
        PorcentajeIva = 10,
        FamiliaNombre = "Familia"
    });
 
 
    var objectDataSource = new Telerik.Reporting.ObjectDataSource();
    objectDataSource.DataSource = dataSource;
    objectDataSource.DataMember = "table1";
 
    var typeReportSource = new TypeReportSource() {
        TypeName = "Report1.trdp" };
    typeReportSource.Parameters.Add(new Parameter()
    {
        Name = "objectDataSource2",
        Value = objectDataSource
    });
    typeReportSource.Parameters.Add(new Parameter()
    {
        Name = "Text",
        Value = "valor"
    });
 
 
 
    }
 
@(Html.TelerikReporting().ReportViewer()
        .Id("reportViewer1")
        .ServiceUrl(Url.Content("/api/reports/"))
        .TemplateUrl("/Resources/Templates/telerikReportViewerTemplate.html")
        .ReportSource(typeReportSource)
        .ViewMode(ViewMode.Interactive)
        .ScaleMode(ScaleMode.Specific)
        .Scale(1.0)
        .PersistSession(false)
        .PrintMode(PrintMode.AutoSelect)
)

 

 

How can I pass the datasoource as a parameter?

Neli
Telerik team
 answered on 11 Feb 2020
3 answers
1.7K+ views

I have html table stored on my database.

<table>

<tr>

<td>Name</td>

<td>Address</td>

</tr>

<tr>

<td>John</td>

<td>Tokyo</td>

</tr>

</table>

I created a sqlDataSource on Kendo Reporting and selected the htmlTextBox in order to render the my html code. However only the td element values are populated in a straight line like below

Name Address John Tokyo

I want this to be rendered in table format

Regards,
Kamal

 

Todor
Telerik team
 answered on 11 Feb 2020
1 answer
124 views

I am trying to evaluate web report designer for one of my projects. I installed the trial report designer and tried to run the AspNetCoreDemo project from the examples folder but i am unable to download the trial nuget packages. I setup the nuget source "https://nuget.telerik.com/nuget" with my tiral user name and password but when i try to restore i just "No Packages Found" message. I tried to manually download the nuget packages from "https://www.telerik.com/account/product-download?product=REPORTING." but it says only licensed users can download. 

Can you guys please help me ?

 

 

Todor
Telerik team
 answered on 10 Feb 2020
2 answers
120 views

I have read the corresponding entries.

But!
I can't find the the binding property in the group.

In the attached example is a datasource with a field NewPage.
Depending on this field, the page break should happen.

 

 

Neli
Telerik team
 answered on 10 Feb 2020
1 answer
189 views
I am using the stand alone Report Designer and trdp reports. The report parameters come from the application's database, and each client has their own database. The application reads new trdp files and adds report parameters, including indicating simple data types--string, integer, etc. Some report parameters are more complex--e.g. an "Account Super Search" function. I am looking for a way to consistently install these more complex parameters without sql scripts or user intervention. Is there a place in the trdp file to embed metadata? I could include the default report parameter data types in a json string and have the application read that metadata.
Katia
Telerik team
 answered on 07 Feb 2020
1 answer
301 views

Hello,

in my project I have a function to export data to an excel file.

I have a filestream object to do this.

In the same project I have created a report with a table in it.

And now I want to set the datasource so that the same data will be shown in the report.

But how can I get this data ?

Best regards

Simon

 

public void ExcelExport(string fileName)
       {
           FileStream fs = new FileStream(fileName, FileMode.Create, FileAccess.Write);
           gridEXExporter1.Export(fs);
           fs.Close();
                 }
Katia
Telerik team
 answered on 07 Feb 2020
12 answers
565 views

Hi,

 I was wondering if there were any typescript definition files for the reporting js framework, and if so, where I could find them?

 Thanks,

Rick
Top achievements
Rank 2
 answered on 05 Feb 2020
1 answer
100 views

Please excuse me because I am not familiar with English.

 

Hi. 

My WinForm is open report and report is open the secend report by subreport .

firstreport is passing 6parameter

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

            Telerik.Reporting.TypeReportSource typeReportSource1 = new Telerik.Reporting.TypeReportSource();
            typeReportSource1.Parameters.Add(new Telerik.Reporting.Parameter("AS_PLANTCODE", "=FIELDS.PLANTCODE"));
            typeReportSource1.Parameters.Add(new Telerik.Reporting.Parameter("AS_LOTNO", BarCode));
            typeReportSource1.Parameters.Add(new Telerik.Reporting.Parameter("AS_FIRSTFLAG", "=FIELDS.FIRSTFLAG"));
            typeReportSource1.Parameters.Add(new Telerik.Reporting.Parameter("AS_FROM", "=FIELDS.FROM"));
            typeReportSource1.Parameters.Add(new Telerik.Reporting.Parameter("AS_TO", "=FIELDS.TO"));
            typeReportSource1.Parameters.Add(new Telerik.Reporting.Parameter("AS_ODD", "1"));
            typeReportSource1.TypeName = "DAS.DA3301_R_Private_Sub1, DAS, Version=1.0.3.2, Culture=neutral, Pub" +
    "licKeyToken=null";
            this.subReport1.ReportSource = typeReportSource1;

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

and subreports are queried using parameters from parent reports in the data source.

subreport is output and 5 Textbox and 1 Picturebox

I want to use the parameter values of the designer in the source,

When i get the value into the source, value = "=Parameters.AS_LOTNO.Value"  be perceived as 

But if i use it to print out, "0001010101:20200131:1:2"

how can i use designer parameters in sourcecode ..TT

Todor
Telerik team
 answered on 04 Feb 2020
4 answers
697 views
Hey

I have a report screen with a collapsible pane, and when we load a report then collapse the pane the report viewer resizes, BUT, the scrollbar in the report viewer doesn't adjust itself.   What's the right way to trigger a UI refresh in the report viewer?

viewerContainerStyle = {
  position: 'absolute',
  width: '100%',
  height: '100%',
  ['font-family']: 'ms sans serif'
};

<tr-viewer #viewer1
           *ngIf="showReport"
           [containerStyle]="viewerContainerStyle"
           [serviceUrl]="serviceURL"
           [reportSource]="{report: filename, parameters: parameters}"
           templateUrl="assets/telerikReportViewerTemplate.html"
           [viewMode]="'PRINT_PREVIEW'"
           [scaleMode]="'FIT_PAGE_WIDTH'"
           [scale]="1.0"
           [enableAccessibility]="false">
</tr-viewer>

Right now I'm toggling showReport which causes the report viewer to redraw itself, fixing the issue, but some of the reports take a while to render and this is exceedingly annoying.

Thanks


Veronika
Telerik team
 answered on 04 Feb 2020
2 answers
250 views
Hi Guys

I am using a provided example of reporting , to create an interface listing the available reports in a DLL.

Everything is working great, however the 3rd item always gets added as a new row and aligned right. I cannot work out why..

Any thoughts or suggestions please.. I have tried widths and margins and looked at the panel and the crosstab properties looking for perhaps a column count limit etc.. but if it was just adding a new row, I would have expected the 3rd item to be left aligned.

Screen shots attached.

Many many thanks

Rob
Todor
Telerik team
 answered on 03 Feb 2020
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?