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

jvmolto

Members
  • Posts

    12
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

jvmolto's Achievements

Apprentice

Apprentice (3/14)

  • First Post Rare
  • Collaborator Rare
  • Conversation Starter Rare
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. Hi, with iReport I use the following query without error, but with Jaspersort Studio I get the errors marked in red SELECT $P!{parTabla}.*,almdes (==> mismatched input '.' expecting 'FROM') FROM $P!{parTabla}, alm WHERE almcod=almlalm AND $P!{parWhere} ORDER BY $P!{sqlOrden} (==> no viable alternative at input $P!{sqlOrden}) How to do this with jaspersoft studio? Thanks in advance
  2. There is a problem when trying to print labels on a thermal transfer printer. The Seagull drivers are used (although with their own drivers does not work). When printing with JasperReports Library, the print dialog does not show the existing paper size in the printer. The driver has the sizes 2"x4", 4"x4" and 4"x6", plus a custom size (which is the one I need), and appear only 2"x4" and 4"x6" sizes. Jasperreports builds the page with the correct size (I check with getPageHeight () and getPageWidth ()), but the print dialog keeps the paper size to 2"x4" instead of the custom size (1"x2") which is what is collected properly with JasperFillManager . fillReport (). Even switching between formats showing the dialog, do not change the margin settings. I think the problem is that the Library does not collect properly the print sizes for this type of printers and therefore does not print labels on them. It should be noted that when performing printing from iReport program, the labels print correctly. Below the code used. print = net.sf.jasperreports.engine.JasperFillManager.fillReport(formulario, jasperHM, connection); exporter = new JRPrintServiceExporter(); PrintService prs = buscaImpresora(getImpresoraSistema()); if (prs == null) { PrinterJob prj = PrinterJob.getPrinterJob(); prs = prj.getPrintService(); } exporter.setParameter(JRExporterParameter.JASPER_PRINT, print); if (prs != null) exporter.setParameter(JRPrintServiceExporterParameter.PRINT_SERVICE, prs); exporter.setParameter(JRPrintServiceExporterParameter.PRINT_REQUEST_ATTRIBUTE_SET, pras); exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PAGE_DIALOG, Boolean.FALSE); exporter.setParameter(JRPrintServiceExporterParameter.DISPLAY_PRINT_DIALOG, mostrarDlgImpresoras); //Boolean.TRUE exporter.exportReport(); Is there any way to set the paper size correctly? Thanks in advance
  3. Hi, I'm migrating JasperReports and iReport from version 3.1 to version 4.5 and I found the following problems: - IReport designer 4.5 is very slow to load jrxml files - IReport Designer 4.5 does not display textField element edges, image, and others. Is there any way to convert jrxml files to solve these problems? Thanks in advance
  4. Please I need help When launching ireport I get a system error (Windows Vista) and the program fails to start I installed ireport-nb-3.5.1-windows-installer and also ireport-nb...zip with the same result. A window appears with the message "ireport stopped working" In the event viewer the following event appears: Ireport.exe Faulting application, version 0.0.0.0, time stamp 0x456c61c8, faulting module msvcrt.dll, version 7.0.6001.18000, time stamp 0x4791a727, exception code 0xc0000005, posting errors 0x0001cc80, Process ID 0x1d60, start time of the application 0x01c9d8b641b1bd84. I have netbeans 6.5 installed and working properly What can I do? Thanks in advance
  5. It is posible to return to properties popup? I think the properties are visually more accesible from this
  6. Sometimes I need to print different values in the last page and not necessarily in pageFooter
  7. This post is a question for Lucian or Teodor. There is some other way to know the printservice used without adding these lines? Code:
  8. Is posible to add two lines to the source code of JRPrintServiceExporter.java, just after line 211. This permit my java aplication to know the PrintService used by JasperReport to print the report and the parameters of the print dialog. Thanks Code: 201: if (displayPrintDialog) 202: { 203: if (printerJob.printDialog(printRequestAttributeSet)) 204: { 205: printerJob.print(printRequestAttributeSet); 206: } 207: } 208: else 209: { 210: printerJob.print(printRequestAttributeSet); 211: } 212:}
  9. The only way I found to know when the last page is printed is to include in sql a reference to last record to be printed and create a variable to perform a test. SELECT cod,nom ..., (SELECT MAX(cod) FROM ...) as maxcod ... $V{isLastPage) == $F{cod}.equals($F{maxcod}) print when is last page print when expresion: $V(isLastPage) or print when is not the las page print when expresion: new Boolean(!$V{isLastPage}.booleanValue())
×
×
  • Create New...