Mark Storer wrote: > Rather than cp.addTemplate(...), your code should look something like this > instead:
Image chartTemplate = Image.getInstance( tp ); doc.add( chartTemplate ); This adds the chart at the current position. You can add extra content with document.add() and it will be under the image (provided that the image fits the page, otherwise you'll need to set the "strict image sequence": http://1t3xt.be/?X00025b ). If you need the chart to be placed at an absolute position, use ColumnText in composite mode. Add the chart wrapped in an Image and the caption to the same ColumnText object and invoke go() after having set the column coordinates. -- This answer is provided by 1T3XT BVBA http://www.1t3xt.com/ - http://www.1t3xt.info ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://www.1t3xt.com/docs/book.php
