I am trying to use the print method of the Printable interface. Through this method I can write text or graphics but I have trouble including data which is of a variable format. For example I have a resultSet which has been retrieved from a database and I wish to include these details on the format of the page. I have tried creating a new method execSql within the same PrintObject class which creates the resultSet. When trying to create a new instance of the class from within Print so that I can use the execSql method I get an error. Does the print method allow us to call other methods which return resultsets or individual fields?
Well, yes, as long as you take that resultSet and format it into a "drawing" of the page to be printed. You might try looking into using JasperReports from SourceForge - it is open source.
"JavaRanch, where the deer and the Certified play" - David O'Meara
Thanks Cindy for your response. The problem I am having is converting the resultset type into a "drawing" type. Would you be able to point me to an example of how this is done? Thanks in advance, Mark
Don't get me started about those stupid light bulbs.