Message11685
I need help. How to do to see a report made in jaspertreport, and executed from python. Let it show on the screen before burning it to disk. In a desktop application.
This is code.
import sys
import os
import PyPDF2
import pyjasper
from platform import python_version
from pyjasper.jasperpy import JasperPy
from PyPDF2 import PdfFileMerger,PdfFileReader
#def advanced_example_using_database():
input_file = os.path.dirname(os.path.abspath(__file__)) + '/report4.jrxml'
output = os.path.dirname(os.path.abspath(__file__)) + '/reportes'
print(input_file)
print(output)
con = {
'driver': 'postgres',
'username': 'postgres',
'password': 'Administra8080',
'host': 'localhost',
'database': 'municipal',
'port':'5432'
}
x=input("Digite codigo de empleado :")
jasper = JasperPy()
jasper.process(input_file,output_file=output,format_list=["pdf"], parameters={'idenifica': (x)},db_connection=con) |
|
Date |
User |
Action |
Args |
2017-11-27 20:02:01 | rmatarrita | set | recipients:
+ rmatarrita |
2017-11-27 20:02:01 | rmatarrita | set | messageid: <1511812921.21.0.213398074469.issue2648@psf.upfronthosting.co.za> |
2017-11-27 20:02:01 | rmatarrita | link | issue2648 messages |
2017-11-27 20:02:00 | rmatarrita | create | |
|