report does not return the view through the GetReport method

Stimulsoft Reports.WEB discussion
Post Reply
Alejandro323
Posts: 5
Joined: Mon Sep 07, 2020 1:09 pm

report does not return the view through the GetReport method

Post by Alejandro323 »

regards
when called the GetReport method using postman to send the parameters
when I send the parameters the method repeats itself asking for the parameters again
attach code example
I appreciate any help.!!
----------------------------

Code: Select all

public ActionResult GetReport(int idOffice, int idOfficePrm, DateTime startPrm, DateTime endPrm)
{

    StiReport report = new StiReport();
    report.Load(StiNetCoreHelper.MapPath(this, "Reports/Reports.mrt"));
    ((StiSqlDatabase)report.Dictionary.Databases["MySql"]).ConnectionString = @"server=host;port=8548;user=Core;password=CorePass;database=db_Core;Datetime=True;";
    report["idOfficePrm"] = idOfficePrm;
    report["idOfficePrm"] = idOffice;
    report["idOfAncest"] = 60;
    report["startPrm"] = startPrm;
    report["endPrm"] = endPrm;
    return StiNetCoreViewer.GetReportResult(this, report);

}
Attachments
2020-09-21_10h32_46.png
2020-09-21_10h32_46.png (22.72 KiB) Viewed 1138 times
Alejandro323
Posts: 5
Joined: Mon Sep 07, 2020 1:09 pm

Re: report does not return the view through the GetReport method

Post by Alejandro323 »

the method GetReport call itself and there's no parameters
the method GetReport call itself and there's no parameters
2020-09-21_10h33_08.png (21.74 KiB) Viewed 1137 times
Lech Kulikowski
Posts: 7336
Joined: Tue Mar 20, 2018 5:34 am

Re: report does not return the view through the GetReport method

Post by Lech Kulikowski »

Hello,

Please send us a sample that reproduces the issue for analysis.

Thank you.
Post Reply