# Reports in web dev

**URL:** <https://forum.inductiveautomation.com/t/reports-in-web-dev/109270>\
**Category:** Ignition\
**Created:** [August 1, 2025, 7:56pm UTC](https://forum.inductiveautomation.com/t/reports-in-web-dev/109270 "2025-08-01T19:56:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kennethandrad](https://avatars.discourse-cdn.com/v4/letter/k/ce7236/32.png) [@kennethandrad](https://forum.inductiveautomation.com/u/kennethandrad)\
**Post date:** [August 1, 2025, 7:56pm UTC](https://forum.inductiveautomation.com/t/reports-in-web-dev/109270/1 "2025-08-01T19:56:20Z")

</div>

Hi, I have this in my Ignition web page .py but I have a problem so, I want to show this report

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/5/f/5f0e2a4d40f0ff718e2d8b1217b7e05326970fd9.png)  
but right now when I access via url the reports download but I want to show in the computer  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/7/7767e1b0ef6ed78dede37051516f305ef1d69395.png)  
not download show in the url such as a web page but the report, can someone help me please ? I try change the name to reporte\_autonomo or reporte\_autonomo.py but it don't works in this case when I have reporte\_autonomo.py download not the pdf download a .py file. Please help me

```python
def doGet(request, session):
	equipo_id = request['params'].get('equipoId')
	reportPath = "RENEW/PLANILLAS/AUTONOMA/PLANILLA_AUTONOMA"
	parameters = {"idEquipo": int(equipo_id)}
	pdf_bytes = system.report.executeReport(path=reportPath,project="Mantenimiento_vn",parameters=parameters,fileType="pdf")
	return {
    "bytes": pdf_bytes,
    "headers": {
        "Content-Type": "application/pdf",
        "Content-Disposition": "inline; filename=planilla_autonoma.pdf"
    }
}

```

When I want to showw the report in the web thsi download

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/f/ef13fc09539a1daaa691ce6dda0ac7b5eacf29e6.png)  
And not download such as pdf when I open with adobe it show very very disconfigured.  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/7/e74e4e16f32088f1b4ffb095c81a5c917a517a00.png)

Please help me to show in the web without download it

---

<div class="post-metadata">

**Author:** ![MMaynard](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mmaynard/32/3366_2.png) [@MMaynard](https://forum.inductiveautomation.com/u/MMaynard)\
**Post date:** [August 1, 2025, 7:59pm UTC](https://forum.inductiveautomation.com/t/reports-in-web-dev/109270/2 "2025-08-01T19:59:54Z")

</div>

you need to return the byteArray

```python
	overrides = {"PName":plantName,'StartDate':sDate,'EndDate':eDate,'dbName':dbName,'Line':line,"Plant":plant}
	bytesArray = system.report.executeReport(path="Delay Report", project="Project1", parameters=overrides, fileType="pdf")
	return {'contentType':'application/pdf','bytes':bytesArray}

```
