descripcion reportes

parent de5b4f19
...@@ -461,6 +461,7 @@ def PDFGenerator(request, ruta, reporteDir, datasets,searchInfo): ...@@ -461,6 +461,7 @@ def PDFGenerator(request, ruta, reporteDir, datasets,searchInfo):
# define the style for our paragraph text # define the style for our paragraph text
styles = getSampleStyleSheet() styles = getSampleStyleSheet()
styles2 = getSampleStyleSheet() styles2 = getSampleStyleSheet()
styles3 = getSampleStyleSheet()
styleN = styles['Normal'] styleN = styles['Normal']
styleN.alignment = 1 styleN.alignment = 1
styleN.fontSize=25 styleN.fontSize=25
...@@ -469,6 +470,10 @@ def PDFGenerator(request, ruta, reporteDir, datasets,searchInfo): ...@@ -469,6 +470,10 @@ def PDFGenerator(request, ruta, reporteDir, datasets,searchInfo):
style2.alignment = 1 style2.alignment = 1
style2.fontSize = 15 style2.fontSize = 15
style3 = styles3['Normal']
style3.alignment = 1
style3.fontSize = 19
# Header # Header
im = Image(USERS_PATH + 'header.png', width=300, height=70) im = Image(USERS_PATH + 'header.png', width=300, height=70)
im.hAlign = 'CENTER' im.hAlign = 'CENTER'
...@@ -477,9 +482,9 @@ def PDFGenerator(request, ruta, reporteDir, datasets,searchInfo): ...@@ -477,9 +482,9 @@ def PDFGenerator(request, ruta, reporteDir, datasets,searchInfo):
story.append(Spacer(1, 1.5 * inch)) story.append(Spacer(1, 1.5 * inch))
# add the title # add the title
story.append(Paragraph("<strong>"+searchInfo['report_name']+"</strong>", styleN,)) story.append(Paragraph("<strong>"+searchInfo['report_name']+"</strong>", styleN,))
story.append(Spacer(1, .60 * inch)) story.append(Spacer(1, .50 * inch))
story.append(Paragraph("<strong>"+searchInfo['title']+"</strong>", styleN,)) story.append(Paragraph("<strong>"+searchInfo['title']+"</strong>", style3,))
story.append(Spacer(1, .40 * inch)) story.append(Spacer(1, .30 * inch))
story.append(Paragraph("<strong>("+searchInfo['startDate']+" - "+searchInfo['endDate']+")</strong>", style2,)) story.append(Paragraph("<strong>("+searchInfo['startDate']+" - "+searchInfo['endDate']+")</strong>", style2,))
story.append(Spacer(1, .60 * inch)) story.append(Spacer(1, .60 * inch))
story.append(Paragraph("<strong>Platform: "+searchInfo['platform']+"</strong>", style2,)) story.append(Paragraph("<strong>Platform: "+searchInfo['platform']+"</strong>", style2,))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment