Generating and Storing PDF Reports in a Database with Python

Stimulsoft Reports.PYTHON discussion
Post Reply
Bege1987
Posts: 1
Joined: Fri Jun 06, 2025 2:50 am

Generating and Storing PDF Reports in a Database with Python

Post by Bege1987 »

Hello,
I'm using Python to generate reports and would like to create a PDF file directly from a report, then save it to a database—without prompting a download on the client side. What’s the best way to achieve this?
Lech Kulikowski
Posts: 7454
Joined: Tue Mar 20, 2018 5:34 am

Re: Generating and Storing PDF Reports in a Database with Python

Post by Lech Kulikowski »

Hello,

You can render, export report on the server side and then save it as you need
https://github.com/stimulsoft/Samples-R ... er_Side.py

Thank you.
KelvinAlves
Posts: 2
Joined: Fri Oct 03, 2025 9:27 am
Location: https://gritt.io/

Re: Generating and Storing PDF Reports in a Database with Python

Post by KelvinAlves »

Hello,

I'm trying to generate PDF reports using Stimulsoft with Python, but my project is based on Django rather than Flask. I want to render and export the report on the server side, then save it directly to a database without prompting a download for the client. I saw some examples for Flask on the Stimulsoft GitHub but I'm unsure how to adapt them for Django. Has anyone tried this? Any guidance would be great since I’m investing quite a bit of time in this feature and want to make sure my implementation would satisfy an investor’s expectations for automated reporting.
Thanks!
Lech Kulikowski
Posts: 7454
Joined: Tue Mar 20, 2018 5:34 am

Re: Generating and Storing PDF Reports in a Database with Python

Post by Lech Kulikowski »

Hello,

We need some time to prepare a sample.

Thank you.
#18582
Lech Kulikowski
Posts: 7454
Joined: Tue Mar 20, 2018 5:34 am

Re: Generating and Storing PDF Reports in a Database with Python

Post by Lech Kulikowski »

Hello,

We have added new sample:
https://github.com/stimulsoft/Samples-R ... er_Side.py

But we have found the issue and fix it. This will work in the new release 2025.4.2 within a week.

Thank you.
KelvinAlves
Posts: 2
Joined: Fri Oct 03, 2025 9:27 am
Location: https://gritt.io/

Re: Generating and Storing PDF Reports in a Database with Python

Post by KelvinAlves »

Hello,
Thank you so much for the update! You’re the best, I really appreciate your help.
Lech Kulikowski
Posts: 7454
Joined: Tue Mar 20, 2018 5:34 am

Re: Generating and Storing PDF Reports in a Database with Python

Post by Lech Kulikowski »

Hello,

You are welcome.
Post Reply