Jump to content
We've recently updated our Privacy Statement, available here ×

number of copies


2004 IR Help

Recommended Posts

By: raf78 - raffeo

number of copies

2005-12-06 06:20

Hi!

Sorry for my English!

I'm new to jasper report.

I create a report with Ireport and now i'd like print 4 copies of this report.

Is possible?

 

My code is

String xmlFileName =

"c:\programmi\webas\punto_cassa\print\newetichetta.jrxml";

String jasperFileName =

"c:\programmi\webas\punto_cassa\print\newetichetta.jasper";

 

try {

JasperCompileManager.compileReport(xmlFileName);

JasperCompileManager.compileReportToFile(xmlFileName, jasperFileName);

java.util.HashMap map = new java.util.HashMap();

map.put("MyParam", new Integer(100));

JasperReport report = JasperManager.loadReport(jasperFileName);

 

JasperPrint print = JasperFillManager.fillReport(report, map,new JREmptyDataSource());

 

new JasperPrintManager().printReport(print, false);

 

Can you help me?

Thanks

Raf

 

 

 

 

By: C-Box - c-box

RE: number of copies

2005-12-06 08:41

Why not the easiest way with a forToDo loop around the printCommand!?!?!

 

 

:-)

 

hth

C-Box

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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