Results 1 to 4 of 4
  1. #1
    kirly is offline Member
    Join Date
    Oct 2008
    Posts
    31
    Rep Power
    0

    Smile 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....

  2. #2
    fishtoprecords's Avatar
    fishtoprecords is offline Senior Member
    Join Date
    Jun 2008
    Posts
    571
    Rep Power
    7

    Default

    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.

  3. #3
    kirly is offline Member
    Join Date
    Oct 2008
    Posts
    31
    Rep Power
    0

    Default

    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....

  4. #4
    jobi is offline Member
    Join Date
    Sep 2011
    Posts
    14
    Rep Power
    0

    Default 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();
    parameterMap.put("billid", billID);//parameter
    JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameterMap, conn);
    JasperPrintManager.printReport(jasperPrint,false);

Similar Threads

  1. Printing Example
    By Java Tip in forum SWT
    Replies: 0
    Last Post: 07-11-2008, 04:41 PM
  2. Help Printing Tables
    By ogidantunde in forum Advanced Java
    Replies: 0
    Last Post: 06-14-2008, 06:34 PM
  3. Printing total out
    By denisdoherty in forum New To Java
    Replies: 1
    Last Post: 04-25-2008, 06:40 AM
  4. Printing (no dialog)
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 02-04-2008, 09:36 AM
  5. Printing using java
    By ramachandran in forum Advanced Java
    Replies: 1
    Last Post: 01-05-2008, 10:16 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •