Results 1 to 3 of 3

Thread: Printing

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

    Default Printing

    Hi All,

    I have a bill(inventory) in my swing application. I want to print when i click on save button. How can i add printing functionality?
    Does it need jasper for printing?

  2. #2
    kevinandrew is offline Member
    Join Date
    Aug 2011
    Posts
    2
    Rep Power
    0

    Default Re: Printing

    Now many printing software available for different printing like black and white or color printing, many printing sort or news paper and visiting card and students results are printing many prees.

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

    Default Re: Printing

    Thanks.
    Now i am printing from a jrxml(jasper) file. I am using the following code for printing


    Connection conn = DatabaseConnection.getDBConnection();
    JasperDesign jasperDesign = JRXmlLoader.load("file1.jrxml");
    JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
    HashMap parameterMap = new HashMap();
    parameterMap.put("billid",1);//billId
    JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, parameterMap, conn);
    JasperPrintManager.printReport(jasperPrint,false);

    This code is working fine. But it takes some time for printing.
    Is there any other way to do this??

Similar Threads

  1. Help in Printing
    By kirly in forum Advanced Java
    Replies: 3
    Last Post: 10-03-2011, 04:40 PM
  2. Replies: 9
    Last Post: 08-19-2011, 01:59 AM
  3. printing string backwards and printing every other
    By droidus in forum New To Java
    Replies: 22
    Last Post: 03-10-2011, 10:17 AM
  4. Printing
    By zzpprk in forum AWT / Swing
    Replies: 0
    Last Post: 01-20-2010, 12:25 PM
  5. Printing Example
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-11-2008, 05:41 PM

Posting Permissions

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