knowing / Medmon

Medical Monitoring
5 stars 0 forks source link

Redesign Report Design #106

Closed stefthedrummer closed 12 years ago

stefthedrummer commented 12 years ago

Task

Design a Report with BarChart

Remove XLS/XML Schemes

Try to remove als xls or xml schemes and use JavaScript with POJOs instead. Do this by creating a ModelClass which simple getter methods which all return strings that are printed inside the report. Check your mails for examples.

Use PDFViewer instead of WebViewer

Try this little snippet here


    FileDialog fileDialog = new FileDialog(shell);
    fileDialog.setFilterExtensions(new String[] {"*.pdf"});
    fileDialog.setFilterNames(new String[] {"PDF Document"});
    String file = fileDialog.open();
    if(file == null || file.length() == 0) 
        return;
    Program.findProgram("pdf").execute(file);