Test date format Reports.
All checks were successful
Build and Deploy / remote-build-and-deploy (push) Successful in 23m25s
All checks were successful
Build and Deploy / remote-build-and-deploy (push) Successful in 23m25s
This commit is contained in:
@@ -956,17 +956,12 @@ namespace GestionIntegral.Api.Controllers
|
||||
report.DataSources.Add(new ReportDataSource("DSDistribuidoresPagos", pagos ?? new List<BalanceCuentaPagosDto>()));
|
||||
report.DataSources.Add(new ReportDataSource("DSDistribuidoresSaldos", saldos ?? new List<SaldoDto>()));
|
||||
|
||||
/*var parameters = new List<ReportParameter>
|
||||
{
|
||||
new ReportParameter("FechaDesde", fechaDesde.ToString("dd/MM/yyyy")),
|
||||
new ReportParameter("FechaHasta", fechaHasta.ToString("dd/MM/yyyy"))
|
||||
};*/
|
||||
var parameters = new List<ReportParameter>
|
||||
{
|
||||
new ReportParameter("FechaDesde", fechaDesde.ToString("o")),
|
||||
new ReportParameter("FechaHasta", fechaHasta.ToString("o"))
|
||||
new ReportParameter("FechaDesde", fechaDesde.ToString("yyyy/MM/dd")),
|
||||
new ReportParameter("FechaHasta", fechaHasta.ToString("yyyy/MM/dd"))
|
||||
};
|
||||
|
||||
|
||||
report.SetParameters(parameters);
|
||||
|
||||
byte[] pdfBytes = report.Render("PDF");
|
||||
|
||||
Reference in New Issue
Block a user