2004-07-09 04:39:52 UTC
Hi,Steve
1. New Release :
Actually, I've finished the development works of my "053-1" about 2 weeks ago, and are debuging it since then. The new release will come out by 7/m.
As you can see, JasperPal users tend to fix bugs by themself rather than post them to me. There is no incentive for me to release code here. So, you will only see the new release in my web-side,
http://aulib.com, and it will no longer be a free sofrware.
(... the users who register the "commercial license" previously, will be granted a "developer license" for the new release, if anyone who concerns about that...)
2.Pass db connection/print preview/pdf preview in JasperPal :
I suggest you implementing these things in your own applications. Since the JasperReports provides many kinds of datasource type, it will be more appropriate for users (I mean application authors) to define how to retrieve their data.
For example, in your applicatin, you have a jButton "btnFillAndView", and data stored in a jTable "dataTable", and design template in a File "designTemplate", you can use the following code to view your report :
btnFillAndView.addActionListener(new ActionListener(){
public void actionPerformed(ActionEvent e){
try{
// fill data
String targetFileName=JasperFillManager.fillReportToFile(
designTemplate.getPath(),
new HashMap(),
new JRTableModelDataSource(dataTable.getModel())
);
// view with JasperViewer
JasperViewer.viewReport(targetFileName, false, false);
} catch(Exception ex){
ex.printStackTrace();
}
}
});
And you can do the similiar things for pdf... etc.
3. SQL generator :
I'll study datavision later, thanks for your suggestion. But, it's really cruel for users who don't know sql to define report templates. They will also need a Java generator for expressions.
Thank you very much for your kindly input, and hope you will be satisfied w/ the upcoming new release.
H.S.Chin 7/9