Jump to content

rogerpenna

Membros
  • Contagem de Conteúdo

    1
  • Ingressou

  • Última visita

Tudo que foi postado por rogerpenna

  1. Olá. Estou usando um sistema onde posso colocar fórmulas em campos, utilizando Python 3. Posso criar uma página HTML (dentro de Python 3) e então gerar um PDF. Aqui está o código. f = Func_x_Treinamento.lookupRecords(Treino=$id) return ''' <html> <head> <title>RELAÇÃO DE FREQUÊNCIA DE TREINAMENTOS</title> <style type="text/css"> table {{ page-break-inside:auto; width="100%"}} tr {{ page-break-inside:avoid; page-break-after:auto }} thead {{ display:table-header-group }} tfoot {{ display:table-footer-group }} </style> </head> <body> <table> <tr> <td><img src="https://i.imgur.com/82J7dfg.png" alt="Logo" width="200"></td> <td><p style="font-size: 12px" align="right">RQ-ADM-002 - VER. 03 - 01/02/2023</p></td> </tr> </table> <h3><center>RELAÇÃO DE FREQUÊNCIA DE TREINAMENTOS</center></h3> <hr> <table width="100%"><border-spacing: 5px table border="1" padding-top="0" padding-bottom="0" cellspacing="0"> <tr height="10px" padding-top="0" padding-bottom="0"> <td width="30%"><strong>Treinamento:</strong></td> <td><p style="font-size: 12px">{0}</p></td> </tr> <tr height="10px" padding-top="0" padding-bottom="0"> <td width="30%"><strong>Conteúdo Programático:</strong></td> <td><p style="font-size: 12px">{1}</p></td> </tr> <tr height="10px" padding-top="0" padding-bottom="0"> <td width="30%"><strong>Objetivo:</strong></td> <td><p style="font-size: 12px">{2}</p></td> </tr> <tr> <td width="30%"><strong>Funções Requisitadas:</strong></td> <td><p style="font-size: 12px">{3}</p></td> </tr> </table> <table width="100%"><border-spacing: 5px table border="1" padding-top="0" padding-bottom="0" cellspacing="0" style="border-collapse:collapse;"> <tr height="10px"> <td width="30%"><strong>Tipo Treinamento:</strong></td> <td><p style="font-size: 12px">{6}</p></td> <td width="30%"><strong>Local:</strong></td> <td><p style="font-size: 12px">{9}</p></td> <td width="20%"><strong>Data e Hora</strong></td> <td><p style="font-size: 12px">{10}</p></td> </tr> <tr height="10px"> <td width="30%"><strong>Duração (horas):</strong></td> <td><p style="font-size: 12px">{4}</p></td> <td width="20%"><strong>Assinaturas?</strong></td> <td><p style="font-size: 12px">{5}</p></td> <td width="30%"><strong>Instrutor:</strong></td> <td><p style="font-size: 12px">{7}</p></td> </tr> <tr height="10px"> <td><strong>Tipo Avaliação:</strong></td> <td><p style="font-size: 12px">{8}</p></td> <td><strong>Prazo Avaliação:</strong></td> <td><p style="font-size: 12px">{6}</p></td> </tr> </p> </table> <hr> <table width="100%"><table border="1" cellpadding="3" cellspacing="0" style="border-collapse:collapse;"> <tr> <th width="5%">#</p></th> <th width="45%">Nome</th> <th width="45%">Função</th> <th width="5%">Presença</th> </tr> {12} </table> </body> </html> Está tudo funcionando bem, EXCETO o fato que o espaçamento entre cada linha das tabelas está gigante, e o cabeçalho (com detalhes de cada treinamento) ocupa metade da página. Já tentei de tudo e não consigo reduzir o espaçamento.
×
×
  • Create New...