Jump to content
JasperReports Library 7.0 is now available ×

PrintService and HTMLOutputStream


Recommended Posts

By: Paolo Spadafora - korfut

PrintService and HTMLOutputStream

2003-07-16 16:21

Hi folks,

some time ago i updated the source code to allow the print on a specified printer, i just added a method that takes an extra argument "PrintService printer":

 

public static boolean printPages(

JasperPrint jasperPrint,

int firstPageIndex,

int lastPageIndex,

PrintService service,

boolean withPrintDialog

) throws JRException

{ ... }

 

for compatibulity i updated all the other methods that fall to this one with a "null" object.

This in the JasperPrintManger.

Then i changed the JRPrinterAWT to allow that, so i pass an extra argument "PrintService printer" as well, i test its value and if it null, i send the print to the printeservice:

printJob.setPrintService(service);

I would like to stay up to date so i don't have to change the code each time there is a new version,

It is possible for you guys add this methods?

I can send the code if you want.

Also I am doing the same to support the HTML export to outputstream, here it requires more work as the images (eventually) in the report needs to be in a URL. The user has to set this via parameter when going to export to html.

Thank you,

korfut.

 

 

 

 

By: Paolo Spadafora - korfut

RE: PrintService and HTMLOutputStream

2003-07-16 16:24

errata corrige:

 

Then i changed the JRPrinterAWT to allow that, so i pass an extra argument "PrintService printer" as well, i test its value and if it is NOT null, i send the print to the printeservice

 

sorry...

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