I'am В настоящее время после учебника (http://kristantohans.wordpress.com/2010/03/01/new-to-jasperreport-build-your-first-impressive-application-part-2/) и он использует соединение Java DB (соппы)JasperFillManager.fillReport and mongo?
50 try {
51 //Fill the report with parameter, connection and the stream reader
52 JasperPrint jp = JasperFillManager.fillReport(is, null, conn);
Как я могу сделать, чтобы подключиться к Монго здесь? Потому что с Монго у меня есть:
Mongo m = new Mongo("localhost" , 27017);
DB db = m.getDB("test");
и
JasperPrint jp = JasperFillManager.fillReport(is, null, m);
не работает
Спасибо!
Этот вопрос лучше ответил здесь: http://stackoverflow.com/questions/9332373/generatepdf-with-jasperreports-library-and-mongodb – mdahlman