Print Report
Hi, how to print data on paper or report from jdbc by sql statement?
Hi, how to print data on paper or report from jdbc by sql statement?
No, you would use the SQL statement to get data from the database into memory. You would then use something else (something having nothing to do with JDBC) to print that data.
Use JasperReports to generate a report from database data retrieved with SQL.
http://www.regdeveloper.co.uk/2006/10/24/jasperreports_tutorial/
I am using Eclipse IDE, how to print a report?
The Eclipse IDE is the tool you use to write your Java programs. The fact that you are using that and not Netbeans or Notepad is irrelevant.
Your question is "How do I use Java to print data". Googling the keywords "java print tutorial" might get you an answer. Try not to get distracted by irrelevant details.