Hi, I need suport to pass my telerik report to MVVM pattern
right now my report is send to the printer, and all the programming is in xaml and their code behind:
in the user control xaml:
<tr:ReportViewer Name="ReportViewer1" Width="0" Height="0" Grid.Column="0" Grid.Row="2">
<tr:ReportViewer.ReportSource>
<telerikReporting:TypeReportSource TypeName="ReportLibrary, ReportLibrary" />
</tr:ReportViewer.ReportSource>
</tr:ReportViewer>
and in the user control code behind:
public ucInventarioPTaVentas()
{
InitializeComponent();
_InventarioVendido = new ObservableCollection<InventarioPTaVentasCL>();
var TRS = new TypeReportSource();
TRS.TypeName = typeof(rpMaterialVendido).AssemblyQualifiedName;
ReportViewer1.ReportSource = TRS;
}
private void btnImprimir_Click(object sender, RoutedEventArgs e)
{
foreach (var item in grdColeccion.Items)
{
if (((InventarioPTaVentasCL)item).seleccionada)
{
_InventarioVendido.Add((InventarioPTaVentasCL)item);
}
}
#region ImprimeReporteDeVentas
Report rpt;
rpt = new rpMaterialVendido();
rpt.DataSource = _InventarioVendido;
Telerik.Reporting.InstanceReportSource instanceReportSource = new Telerik.Reporting.InstanceReportSource();
instanceReportSource.ReportDocument = rpt;
instanceReportSource.Parameters.Add("pCliente", cbClienteNombre.Text);
ReportViewer1.ReportSource = instanceReportSource;
ReportViewer1.PrintReport();
#endregion
}
But, for all my app, I using the MVVM pattern, obviously on my ViewModel I have the observablecollection and the parametrs needed to my report, and I don't know how make the report with the MVVM pattern, can you help me??
We have a requirement to set up the colors of a pie chart dynamically based on the color code retrieved from the database. How can we achieve this with standalone report Designer ?
HI Guys,
I am new to telerik report designer, i have trying to create a report that consists of 3 sections.
Section 1 is a summary of a team, section 2 is the average of staff, and staff stats.
I am having difficulty with the average row as i need to sum the values of each agents "Calls to Success" stats and divided by the number of agent which is 3.
So i should be getting 5.14.
Any idea guys.
Thanks
Hi to all.
I'm new here.
I want to show reports dynamically. In Windows Forms I have no problems but in MVC is more confusing I think.
I call a service (WCF) that returns a Telerik.Reporting.Report object.
It has all I need, datasource, report parameters etc.
Then in windows all I needed to do was (figura1) and the result is awesome (figura0)
In MVC the page recieve a report (figura2)
This report is saved here (figura3)
But when I show the report in the viewer it is empty (figura4)
Sb can help me please.
Thanks in advance
Hi.
I'm using the standalone designer to design my report. When I export to Excel, the gridlines are not visible (see attachec file, Gridlines.PNG). How can I make them visible during export ?
Best regards,
Kalli Kaldi
Hello
I have a need to create a report, in PDF format, where the first page has a coloured panel down the right side with image, text near the top and logo/contact details down the bottom. On the left side is the main information of the report.
The report has only main data row so I've currently got it all in the details section.
The first page shows fine, however on subsequent pages (of which i don't know how many there are), i need to:
1. continue the panel to the bottom of the page, and
2. the contact details section from the first page needs to show at the bottom of the right hand panel.
Currently, the panel on the next page ends where the details section ends, not at the bottom of the page. Is there a way to extend the panel to the bottom?
Is there a way to show fields/images at the bottom of the side panel? I can't use a footer as it would mean there is too much white space on the left that should e used for the main part of the report.
I hope that makes sense to you.
Thanks for any help