Jump to content
Changes to the Jaspersoft community edition download ×

How to print Report Directly to client's Printer?


sray

Recommended Posts

I need to print the report from client's printer. It is needed that the report will be generated from .jrxml file but will not be filled to any File in client PC, rather it will directly go give a prient comand to the printer at clients end.

 

I need urgent assistance.

Thank you

Sourav

Link to comment
Share on other sites

  • 5 months later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Hi,

 

 

 

InputStream inputStream = this.getClass().getClassLoader().getResourceAsStream("test.jasper");

JasperPrint jasperPrint = JasperFillManager.fillReport(inputStream,null, new JRBeanCollectionDataSource((Collection) lstTest));

JasperPrintManager jasperPrintManager = new JasperPrintManager();

jasperPrintManager.printReport(jasperPrint, true);

 

 

 

I belive that, this may help u.

 

thanks

Krish.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...