Giter Site home page Giter Site logo

ipi-java-250-export's Introduction

Export

Ajouter des données de tests (des nouveaux clients ou articles ...) Ajouter de nouvelles colonnes (age, adresse, marque, score, ...)

CSV

Un fichier CSV est un fichier texte "à plat" chaque ligne correspond à une ligne du tableau, chaque colonne est séparée par des ";" Le contenu d'une cellule peut être entourée de double quotes

  • Exporter la liste des clients au format CSV (colonnes: nom, prénom)
  • Bonus ajouter le caractère ; dans le nom d'un des client (ex PETR;ILLO) et corriger le code pour faire en sorte que le fichier CSV reste correct.

XLSX

Workbook workbook = new XSSFWorkbook();
Sheet sheet = workbook.createSheet("Clients");
Row headerRow = sheet.createRow(0);
Cell cellPrenom = headerRow.createCell(0);
cellPrenom.setCellValue("Prénom");
workbook.write(fileOutputStream);
workbook.close();
  • Créer un export XLSX de tous les clients (colonnes: nom, prénom)
  • Créer un export XLSX pour un client, et créer un onglet par facture chaque onglet contiendra le détail de la facture (colonnes : désignation, quantité, prixUnitaire, prixLigne) et rajouter le prix total de la facture en bas (utilise un colspan)

PDF (iText)

CSV amélioré (BONUS a faire après)

Créer un objet permettant d'améliorer l'export.

  • Créer une classe permettant de réaliser des exports en rassemblant la définition de l'entête et du contenu

PDF (birt) (BONUS on verra ensemble)

Birt est un outil de templating pour générer des PDF (et autres) Télécharer birt all in one http://download.eclipse.org/birt/downloads/ créer un nouveau report utiliser une datasource XML

  • Créer un service de génération de PDF via BIRT : le service utilise un template birt et founit un dataset xml pour créer le PDF.

PS : Ajouter des bordures, des images, des polices, des couleurs, du gras souligné etc...

ipi-java-250-export's People

Contributors

alexandrepetrillo avatar pcharlet avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.