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

shekhar

Members
  • Posts

    18
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by shekhar

  1. Very strange no solution yet but, i down graded into JDK 1.6 and it is working now....
  2. Dear Team, We have been printing Chinese report for quiet while using JDK 1.6, but suddenly after the JAVA JDK 1.7 upgrade caused the overlape printing. for more reference please report attachment Need your urgent support. Regards Shekhar
  3. Hi I'm also faced the same issue using 4.0.2 after i updated to latest version problem resolved. cheers
  4. Problem has been resolved after upgrading into 4.1.2 version Post Edited by rshekhar2000 at 10/13/2011 05:30
  5. HI Experts, Please refer my screen shots for more understanding The issue here is using Asian language jasper report viewer showing all the Asian language perfectly but when i export it into pdf format file the content alignment is totally chopped into second line (marked in RED) Previous version of jasper report 3.0.0 there is no issue at all but after upgrading into 4.0.2 problem started. Please help me what i need to update... Cheers Shekhar. Post Edited by rshekhar2000 at 09/28/2011 07:08 Post Edited by rshekhar2000 at 09/28/2011 07:10
  6. Hi Ganapathi, For A3 paper this is the size Width 842 Height 1190 pixels by default, if you try to increase or decrease the settings, the system will take it as a custom paper. Cheers, Shekhar
  7. HI, You need to change the page size proprety it is very import what size you fix for A4 also orientation should be landscape, please refer my screen shot for your more understanding. thanks :)
  8. Hi, Yes, please take look at this class MediaSize for more details. You can customize your media size as you want or you can use standard ISO sizes. i hope the following code could help you. :) JasperDesign jasperDesign = JRXmlLoader.load(filename.jrxml); JasperReport jasRep = JasperCompileManager.compileReport(jasperDesign); JasperPrint jasPrnt = JasperFillManager.fillReport(jasRep, null ,con); PrintRequestAttributeSet printRequestAttributeSet = new HashPrintRequestAttributeSet(); MediaSizeName mediaSizeName = MediaSize.ISO.A4.getMediaSizeName(); printRequestAttributeSet.add(mediaSizeName); JRPrintServiceExporter exporter = new JRPrintServiceExporter(); exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); exporter.setParameter(JRPrintServiceExporterParameter.PRINT_REQUEST_ATTRIBUTE_SET, printRequestAttributeSet); exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PAGE_DIALOG, Boolean.FALSE); exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PRINT_DIALOG, Boolean.FALSE); exporter.exportReport(); Post Edited by rshekhar2000 at 04/09/2010 09:02 Post Edited by rshekhar2000 at 04/09/2010 09:03
  9. Hi, We are having mulitithread report generating environment and our main report XXX.jrxml calling subreport called YYYY.jasper. the problem here is that in the (Thread) object JasperFillManager accessing the XXX.jrxml file concurrently one of the thread successfully generated report file and anther thread encountering the java.io.FileNotFoundException for subreport file. i hope it is (file) resource sharing problem, Could any one help me. thanks
  10. I'm not sure about your problem but we can set the MediaSizeName, here is the code will look like this ... instead of JasperPrinterManager use JRPrintServiceExporter i hope this solve your problem. :) Code:JasperDesign jasperDesign = JRXmlLoader.load(f);JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport,parameters,con);PrintRequestAttributeSet printRequestAttributeSet = new HashPrintRequestAttributeSet(); MediaSizeName mediaSizeName = MediaSize.ISO.A4.getMediaSizeName(); printRequestAttributeSet.add(mediaSizeName); printRequestAttributeSet.add(new Copies(1));JRPrintServiceExporter exporter = new JRPrintServiceExporter();exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint);exporter.setParameter(JRPrintServiceExporterParameter.PRINT_REQUEST_ATTRIBUTE_SET, printRequestAttributeSet);exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PAGE_DIALOG, Boolean.FALSE);exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PRINT_DIALOG, Boolean.FALSE);exporter.exportReport();
  11. Thanks Teodor, The following code works for me... Boolean.valueOf($F{XXXXXXXX}.length()>0)
  12. Thanks for your reply. what would be the expression? please provide me the sample code.
  13. Hi i'm facing some problem for value null Barcode, i should not print any barcode if it is null value. any help will be appreciated thanks. shekhar
  14. I have a problem in splitting the string Assume my below query return’s me 3 rows with the address details Select add, from add_tbl But the ‘add’ column having data like Row 1. #15 South street, Bendfast Area, 500402 Row 2. Chennai Row 3 India In ireport side I need to split those add data and display it in following manner into detail band Address #15 South street, Bendfast Area, 500402 Chennai India pls help me with sample
  15. sorry guys, when i design the report i choosed custom size that's why the report print range was not perfect now i re-adjust all the fields for A4 size.. the printout is working
  16. hi i need to create a dynamic pages, assume if i have some data to fill the report and i'm sending page no as a parameter 4 need to create 4 pages.... how do i create
  17. I’m generating A4 paper PDF report and printing through AcroRd32.exe which is printing without any print range problem but when I try to print JRPrintServiceExporter the print range is not correct and print out is going out the A4 size paper This is my code Code:JasperReport jasRep = null; JasperPrint jasperPrint = null; JasperDesign jasperDesign = null; try { jasperDesign = JRXmlLoader .load(“std_delivery_note.jrxmlâ€); jasRep = JasperCompileManager.compileReport(jasperDesign); jasperPrint = JasperFillManager.fillReport(jasRep, parameters, db .getConnection()); PrinterJob job = PrinterJob.getPrinterJob(); PrintService[] services = PrintServiceLookup.lookupPrintServices(null, null); int selectedService = 0; for(int i = 0; i <services.length;i++){ if(services.getName().contains("HP"«»)){ selectedService = i; } } System.out.println("Selected " + services[selectedService].getName()); job.setPrintService(services[selectedService]); PrintRequestAttributeSet printRequestAttributeSet = new HashPrintRequestAttributeSet(); MediaSizeName mediaSizeName = MediaSize.ISO.A4.getMediaSizeName(); printRequestAttributeSet.add(mediaSizeName); printRequestAttributeSet.add(new Copies(1)); JRPrintServiceExporter exporter; exporter = new JRPrintServiceExporter(); exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); exporter.setParameter(JRPrintServiceExporterParameter.PRINT_SERVICE, services[selectedService]); exporter.setParameter(JRPrintServiceExporterParameter.PRINT_SERVICE_ATTRIBUTE_SET, services[selectedService].getAttributes()); exporter.setParameter(JRPrintServiceExporterParameter.PRINT_REQUEST_ATTRIBUTE_SET, printRequestAttributeSet); exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PAGE_DIALOG, Boolean.FALSE); exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PRINT_DIALOG, Boolean.FALSE); exporter.exportReport(); System.out.println("Done"«»); } catch (JRException e) { // lg.error(prog, module + ", Error" + e.getMessage()); System.out.println("ERRor " + e.getMessage()); } catch (PrinterException e) { // lg.error(prog, module + ", Error" + e.getMessage()); System.out.println("ERRor " + e.getMessage()); } Please help me whether am I missing any print range property :(
×
×
  • Create New...