Posted 5 December 2018, 4:58 pm EST
Is there some sample code for exporting a report with Parameters? (It looks like all of the included SDK samples say “Parameterized Reports are not supported”)
I would like to use the REST API /api/reports/{id}/jobs/render
It works fine with no parameters, or one simple parameter. But when I am trying more complicated reports, I always get an HTTP 500 returned, with no logged error or more details.
Here is an example of what I’m posting, which I think adheres to the spec?
{
"ReportParameters": [
{
"Name": "parm1",
"Domain": "SpecifiedValues",
"Values": [ "5" ]
},
{
"Name": "parm2",
"Domain": "SpecifiedValues",
"Values": [ "" ]
},
{
"Name": "parm3",
"Domain": "SpecifiedValues",
"Values": [ "-1" ]
}
],
"ExtensionName": "PDF",
"ExtensionSettings": {
"Application": "ActiveReports Server",
"Author": "ActiveReports Server",
"OptimizeStatic": true,
"PrintOnOpen": true,
"NeedExportSupport": true
},
"Timeout": 20000,
"UseCache": false
}
Thanks!