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

nlasystems

Members
  • Posts

    22
  • Joined

  • Last visited

nlasystems's Achievements

Apprentice

Apprentice (3/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Collaborator Rare

Recent Badges

0

Reputation

  1. I have used ireport for a number of years to design and compile a list of reports that are residing in my java desktop application. Now I installed Jasper Studio and for the time being wish to continue to do the same but I am having a hard time setting JasperStudio up to simply compile individual reports. Studio seems to insist on me creating a project and then writing the compiled reports in its workspace. Is there a way to use Studio to compile a list of reports and write the compiled versions in the same folder?
  2. Hi everyone I am filling a report using AsynchronousFillHandle complete with its listeners. Everything is working fine except that the little while loop that updates the GUI to report progress is not having its desired effect. I am to understand that the fill process is running in a seperate Thread. The code that updates the GUI is running in the DispatchThread(). Why is the GUI not updating? Do I have to use Swingworker? I don't believe so. Maybe there is something I am missing. Any little help would be greatly appreciated. Thanks
  3. GRRR!!! Actually it did not work, It worked for the HP Deskjet 1050 as stated above. When I posted wictory I assumed that since it worked for the 1050 it is going to work for 2515 but sorry to say that it persistently kept printing half a page horizontally. We tried both 300 and 600 dpi.
  4. Bingo! Thanks Sunal! It worked for us too. The only thing we need to amend now is to prompt printer setup BEFORE your exporting code because we will use this code for this exception only. Incidentally we encountered another printer with the same problem (HP Deskjet 1050) In this case 600DPI made matters worse but 300 DPI woked just fine. Thanks again.
  5. Sorry but we didn't find a solution to this. We gave up on it actually.
  6. I have now uploaded two pictures to further clarify my issue. Thanks
  7. for some reason, the jrxml code is not coming up in my answer
  8. You can stretch the width in iReports. Alternatively, you can do it in the jrxml ... Here is the header ... Here is the cell $V{valuesMeasure} To change the font size I use html markup in each cell and use html to define the fonts. Hope that helps
  9. Can you see some error other than 'not connected ?
  10. Sorry but the code I am pasting is not showing in my answer for watherver reason. Here they are again here and here ...
  11. If I am understanding you question, you have two choices. Either bring up your report in IReports and just click on the header and cell of the column and strech to the desitred width. You can also specify the width of the data cell in the xml as below and the column header as below
  12. Hi All We have been using JasperReports for more than 7 years now and this is the first time this happenned. We have 2 printers on the same server, namely an HP LaserJet P1005 and an HP Deskjet 2510 series. From the same application, printing to the LaserJet is OK but printing to the Deskjet produces a strange result. The fonts expand horizontally and as a result, the right hand half the page gets truncated horizontally. The first thing we did was upgrade to the latest version (5.0.1) but exactly the same behaviour persisted. If we export the report to a PDF, both printers print OK from Acrobat Reader. That is why we now think that the problem is with the JRPrintServiceExporter *******I have also uploaded a pdf to show how the report should look like and a jpg scan of the wrong print-out. ******* We have captured the PrintServices Attributes which we are listing below. Found print service: Win32 Printer : \SERVER-PCHP LaserJet P1005 job-name - Java Printing requesting-user-name - USER copies-supported - null spool-data-destination - file:/R:/nlaPayroll/out.prn orientation-requested - portrait page-ranges - 1-2147483647 media - iso-a4 media-printable-area - (3.725,3.556)->(202.523,289.899)mm ipp-attribute-fidelity - false sheet-collate - uncollated sun-alternate-media - null chromaticity - color printer-resolution - 60000x60000 dphi Found print service: Win32 Printer : \SERVER-PCHP Deskjet 2510 series job-name - Java Printing requesting-user-name - USER copies-supported - null spool-data-destination - file:/R:/nlaPayroll/out.prn orientation-requested - portrait page-ranges - 1-2147483647 media - iso-a4 media-printable-area - (3.133,3.133)->(203.708,290.576)mm ipp-attribute-fidelity - false sheet-collate - collated sun-alternate-media - null chromaticity - color printer-resolution - 60000x30000 dphi This is the method we are using to print: - public void print(String printerName) throws Exception { try { Copies noOfCopies = new Copies(1); PrintRequestAttributeSet printRequestAttributeSet = new HashPrintRequestAttributeSet(); printRequestAttributeSet.add(MediaSizeName.ISO_A4); printRequestAttributeSet.add(noOfCopies); PrintServiceAttributeSet printServiceAttributeSet = new HashPrintServiceAttributeSet(); JRPrintServiceExporter exporter = new JRPrintServiceExporter(); exporter.setParameter(JRExporterParameter.JASPER_PRINT, jasperPrint); exporter.setParameter(JRPrintServiceExporterParameter.PRINT_REQUEST_ATTRIBUTE_SET, printRequestAttributeSet); exporter.setParameter(JRPrintServiceExporterParameter.PRINT_SERVICE_ATTRIBUTE_SET, printServiceAttributeSet); if (printerName==null) exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PRINT_DIALOG, true); else { exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PRINT_DIALOG, false); printServiceAttributeSet.add(new PrinterName(printerName, null)); } exporter.exportReport(); if (printerName==null) lastPrinterUsed=exporter.getPrintService().getName();; } catch (Exception e) { System.out.println("Docbuilder.print() error> "+e); throw e; } }
  13. Hi All I hope someone can help us with this. We have a master/ttransaction type report where the master record details are in the heater band and the transaction details are in the detail band. The sql statement is using left outer join so that if there are no transaction records, the master details will still come up just the same. select * from masterTable left outer join transTable on (etc etc) We know for sure that the sql statement is generating a single record in the case where there are no transactions. We executed outside from iReports. Howver, when we print the report, the master details are showing null. Anyone has had the same experience? Thanks & Best regards Noel Post Edited by nlasystems at 07/12/2012 10:32
×
×
  • Create New...