Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.programmer Subject: Re: Report Generation API For Java? Date: Sun, 07 Apr 2013 11:28:42 -0400 Organization: A noiseless patient Spider Lines: 28 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 7 Apr 2013 15:26:15 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="0d73d8cc209bff1c6395088b400d0605"; logging-data="626"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/KgzjlTIti6AK8E+0152ER" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 In-Reply-To: Cancel-Lock: sha1:ocJMcMlW7iqVHtSw7g3XMqiunLY= Xref: csiph.com comp.lang.java.programmer:23363 On 4/7/2013 10:52 AM, Sourabh Mhaisekar wrote: > I am developing tool for analysis of office data, for which I need to generate reports as per database entries. > Report generation API should be able to draw various graphs such as Pie, Bar etc. > > Does anyone have any suggestion about what library should I use ? There's JFreeChart , which can draw many kinds of charts in Swing applications. I think it can also render them as PNG or PDF. The gotcha (last time I looked) is that the library and JavaDoc are free, but the "How To" book costs money. Google Charts lets you embed graphs in HTML documents, using Javascript libraries. You can write the HTML from any language you choose, including Java, and any modern browser can display them (without needing Java). OpenOffice.org has API bindings for various languages that would let you generate OOo documents directly from your Java code. It's quite un-Java-like, possibly because of the other language bindings it needs to support. I don't know whether it works with LibreOffice, or whether LO has similar API's. -- Eric Sosman esosman@comcast-dot-net.invalid