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?
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
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 ?
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.
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();
}
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,
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
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