Wionon Posted June 19, 2023 at 10:27 AM Report Share #631310 Posted June 19, 2023 at 10:27 AM Boas a todos. Estou a criar uma base de dados de contactos. Efetuo uma perquisa a uma tabela de contacto, e apresento através da DATATABLES. Aqui está tudo correto! Adicionei butões para exportar os dados apresentados. O que pretendo e não estou a conseguir é que ao exportar para PDF da tabela seja apresentada ao longo da pagina, ou seja, ocupe a pagina na horizontal em toda a largura da pagina. O código que estou a utilizar é o seguinte, mas não estou a perceber onde vou colocar a definição do width da table a 100% da pagina. $(document).ready(function() { $('#example1').DataTable( { "language": { "buttons":{colvis: "Visualizar colunas"}, "lengthMenu": "Mostar _MENU_ campos por página", "zeroRecords": "Não existe contactos criados!", "info": "Página _PAGE_ de _PAGES_", "search":"Pesquisar", "paginate" :{ "first" : "Primeiro", "next" : "Seguinte", "previous": "Anterior", }, }, dom: '<"dt-buttons"Bf><"clear">lirtp', buttons: [ 'colvis', { extend: 'pdfHtml5', exportOptions:{ columns: [ 0, ':visible' ] }, text: ' <i class="fa-solid fa-file-pdf"></i>', alignment: 'center', orientation: 'landscape', pageMargins: [ 20, 60, 40, 60 ], title:'Lista de Contactos', customize: function(doc){ var logo = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKoAAACqCAYAAAA9dtSCAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADB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juI9QmLR+LZj4E4AVfJM5QohCTkxvSo6nC0Q2FI0IIF6ZeoixflJ3ddVhf5kE1yE5Ky7YubvPFDZALSg3uvuAzi+Td7qmvqnBvWRljFNaP+uvdPGHR+QNMBG5HRMbpv3uoL+UJX8ubMAvRdAlQZoX2FyhSy4tyzL2FM270KDntxlgN4roGqYPMEqExq46B68Z9bW7nsnge4VUCUvV7BsTfERwbSvMKuNFN/y97GxWO7HUnwsAhWpuI9y514CVTHIB8guLBFjvqc+WjcTEWPWkH+2a8ykTXyfx/HeA1UBAAezZU8n5+MhAeEN/T0pG8D0PBY9y+cESJ3nekGW4IOJbnxQQFXIA4exVs3g66Fkct/lfP6RdH3H4F4RY/vwQ4pifARqOngFYB9jXhlllS0Cqxp4lwLyH4F6OzSujfnpdZ8zzWgZgDnCPFVQSIqEfh/fd425bPv/AwAgrl96GPGJdQAAAABJRU5ErkJggg=='; var now = new Date(); var jsDate = now.getDate()+'-'+(now.getMonth()+1)+'-'+now.getFullYear(); doc.defaultStyle.fontSize = 10; doc.defaultStyle.alignment = 'left'; doc['header']=(function() { return { columns: [ { image: logo, width: 40 } ], margin:20 } }); doc['footer']=(function() { return { columns: [ { alignment: 'left', fontSize: 7, text: '@ Teste', }, { alignment: 'right', fontSize: 7, text: ['Criado em: ', { text: jsDate.toString()}], } ], margin: 20 } }); } } ] } ); } ); Vicente Link to comment Share on other sites More sharing options...
MentorDuncan Posted June 19, 2023 at 10:03 PM Report Share #631311 Posted June 19, 2023 at 10:03 PM Supondo que tenhas 5 colunas já tentou assim? $("#example").DataTable({ ... "buttons": [{ ... customize: function(doc) { ... doc.content[0].table.widths = ['*', '*', '*', '*', '*' ]; ou especificando a largura de cada coluna assim? doc.content[0].table.widths = ['5%','*','10%','10%','10%']; Link to comment Share on other sites More sharing options...
Wionon Posted June 20, 2023 at 12:46 PM Author Report Share #631323 Posted June 20, 2023 at 12:46 PM Boa tarde, Obrigado pelo contributo. Mas quando coloco esse código e carrego no botão para gerar o PDF o mesmo fica a pensar e não faz nada. Vicente Link to comment Share on other sites More sharing options...
MentorDuncan Posted June 20, 2023 at 09:40 PM Report Share #631333 Posted June 20, 2023 at 09:40 PM Mostre-nos como ficou Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now