Error receiving DataSet Valors

0

DetailCountsCorrectDataSet (parameters) is a method in which you send parameters, this case Dates.

I send two dates parameters and make the query

when returning the valors I have an error, in (DetailCuentasPorCobrarDataSet)

what are the ReportDataSource parameters rd = new ReportDataSource ("",) NOTE: intellisense does not work

public ActionResult ImprimeDetalleCuentasPorCobrarController(DetalleCuentasPorCobrarParam parametros, string id)
        {
            LocalReport lr = new LocalReport();
            string path = System.IO.Path.Combine(Server.MapPath("~/Reportes"), "DetalleCuentasPorCobrarReport.rdlc");
            if (System.IO.File.Exists(path))
            {
                lr.ReportPath = path;
            }
            else
            {
                return View("Index");
            }
            ReportDataSource rd = new ReportDataSource("DetalleCuentasPorCobrarDataSet", DetalleCuentasPorCobrarDataSet(parametros));

            ReportParameter[] parameters = new ReportParameter[2];

            lr.DataSources.Add(rd);
            string reportType = id;
            string mineType;
            string encoding;
            string fileNameExtension;

            string deviceInfo =
                "" +
                "" + id + "" +
                "8.5in" +
                "11in" +
                "0,787402in" +
                "0,787402in" +
                "0,787402in" +
                "0,787402in" +
                "";

            Warning[] warnings;
            string[] streams;
            byte[] renderedBytes;

            renderedBytes = lr.Render(
                reportType,
                deviceInfo,
                out mineType,
                out encoding,
                out fileNameExtension,
                out streams,
                out warnings);


            return File(renderedBytes, mineType);
        }
    
asked by Rodrigo Rodriguez 28.09.2017 в 00:24
source

0 answers