Help in Printing
Hello guys, does anyone know any method or API that i can use for printing?
example i am making a simple Application that is like a BIODATA form, then there is a button for me to print the form. What method should i call for that option? any idea how? please help.. thanks....
Native app? Or just a jsp page handled by Tomcat or JBoss or something similar.
If its the latter, you just let the user's browser do it all.
native,,, i am not using a browser because it is not an applet,,,,
i want to make a simple java application that can be printable after the textfields are filled-up.. same functions such as systems that generate reports,, like that....
Re: Help in Printing
I have a bill printing functionality. I used jasper report .
Following code may be helpful..
Connection conn = DatabaseConnection.getDBConnection();
JasperDesign jasperDesign = JRXmlLoader.load("sample.jrxml");// jasper file
JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
HashMap parameterMap = new HashMap();
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameterMap, conn);