FastReport

Downloading/viewing PDF documents and listings, FastReport.fr3 formats

POST calls

Call for fastreport report

post

This call will return the pdf generated by printing the format indicated in the variable {format}. All the formats we want to print must be in the reports folder indicated in the configuration file in the parameter "CarpetaInformesExternos". In the body of the Json we will pass as many sql sentences as the report requires.

Parámetros de ruta
formatostringRequerido

The name of the fastreport format (File name and extension .fr3)

Parámetros de encabezado
AuthorizationstringRequerido

Bearer + JWT_token

Cuerpo
Respuestas
200

Returns the document in an Object

application/json
post
/rptdescarga/{formato}
200

Returns the document in an Object

Body de FastReport

Download a report in fastreport

https://server:5555/api/rptdescarga/descargaprueba.fr3

{
    "SQL":
        [
            {
            "nombre": "frxClientes",
            "sentencia": "select codcli,nomcli,nifcli from clientes order by codcli"
            },
            {
            "nombre": "frxFacturas",
            "sentencia": "select tipocont,serie,numdoc,fecha,referencia,codcli,nomcli,totdoc from cabefacv where month(fecha)=1"
            }
        ]
}

Última actualización

¿Te fue útil?