export to pdf - Exporting PDF files in Java -


i have table gets it's data sql db. i'm trying find easiest way export table, is, pdf file. nothing fancy, title , table it's content. i've searched around here , checked external packages (docmosis , such), did not make mind. new in java , i'm looking easiest way export table pdf.

trying answer possible questions, here's how populate table:

try {    result = dbconnection.gettablecontent("customers", attributes, where, null, null);    defaulttablemodel model = (defaulttablemodel) searchtable.getmodel();    model.setrowcount(0);    (int = 0; < result.size(); i++) {                               model.addrow(result.get(i).toarray());    } } 

thanks

you can use itext pdf api. pretty easy use. have download jar, import class , go. check out tutorial on how use classes


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -