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

saurabhraval

Members
  • Posts

    9
  • Joined

  • Last visited

saurabhraval's Achievements

Apprentice

Apprentice (3/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. I have created a Jasper report with some fields. Depending upon the input parameter (i.e. language), I wanted to change the field label. Since the language translations for the fields are stored in the database (or maybe an external xml file), I wanted to find out if there is some way to specify the field name. I understand the Resource bundles are an option, but for resource bundle, the customer would need to generate separate properties file for each language, and we already have this information in the database. Thanks.
  2. Is there a way to change the background for the entire report using iReport? I do not see the background properties for the document. I tried adding rectangle for the whole report, but the report can belong to only 1 band so that did not work. Any suggestions?
  3. Thanks for the reply Kai. In our case, I am creating the Jasper report object on serverside, converting it to temporary Html file and then passing the file back to the browser for display. In this case,I guess it wont be possible to point to a Hyperlink.
  4. Is it possible to link 2 reports with Hyperlinks without using JasperServer? From the forums discussion, it looks like this is a very common requirement which is not supported out of the box by iReport i.e. u would need to have a hyperlink to ur web apps which would generate the appropriate jasper report.
  5. I am trying to display 20 columns across 2 pages using Jasper reports. How can I specify (in iReport or any other tool) that the fields 11 thru 20 are in a new page? I tried searching existing forums but could not find any answer. Example: page 1 ---------------------------------------------------- | field1 | field2 | ......................................| field9 | ---------------------------------------------------- | data | data |.......................................| data | ---------------------------------------------------- | data | data |.......................................| data | ---------------------------------------------------- | data | data |.......................................| data | ---------------------------------------------------- page2 ---------------------------------------------------- | field10 | field11 |....................................| field20 | ---------------------------------------------------- | data | data |....................................| data | ---------------------------------------------------- | data | data |....................................| data | ---------------------------------------------------- | data | data |....................................| data | ----------------------------------------------------
  6. Got the solution from dynamicjasper forum. Posting solution here in case some1 else needs it: --------------------------------- you are missing a dependency: jdtcore-3.1.0.jar get it from this maven 2 repository http://mirrors.ibiblio.org/pub/mirrors/maven2/eclipse/jdtcore/3.1.0/ let me know if you have any problem bye bye Dj
  7. My code is as follows. It uses dynamic jasper jar file to create jrxml file. package dynamicjasper.report; import ar.com.fdvs.dj.core.DynamicJasperHelper; import ar.com.fdvs.dj.core.layout.ClassicLayoutManager; import ar.com.fdvs.dj.domain.DynamicReport; import ar.com.fdvs.dj.domain.builders.FastReportBuilder; import java.io.File; import java.io.FileOutputStream; import java.util.Date; import java.util.HashMap; public class FastReportTest //extends BaseDjReportTest { public DynamicReport buildReport() throws Exception { /*** * Creates the DynamicReportBuilder and sets the basic options for * the report */ FastReportBuilder drb = new FastReportBuilder(); drb.addColumn("State", "state", String.class.getName(),30) /*.addColumn("Branch", "branch", String.class.getName(),30) .addColumn("Product Line", "productLine", String.class.getName(),50) .addColumn("Item", "item", String.class.getName(),50) .addColumn("Item Code", "id", Long.class.getName(),30,true) .addColumn("Quantity", "quantity", Long.class.getName(),60,true) .addColumn("Amount", "amount", Float.class.getName(),70,true) .addGroups(2) */ .setTitle("November 2006 sales report") .setSubtitle("This report was generated at " + new Date()) .setUseFullPageWidth(true); DynamicReport dr = drb.build(); return dr; } public static void main(String[] args) throws Exception { File outFile = new File("C:\dn_test.jasper"); FileOutputStream outputStream = new FileOutputStream(outFile); FastReportTest test = new FastReportTest(); DynamicReport dr = test.buildReport(); DynamicJasperHelper.generateJRXML(dr, new ClassicLayoutManager() , new HashMap(), "UTF-8", outputStream); //test.testReport(); //JasperViewer.viewReport(test.jp); //finally display the report report // JasperDesignViewer.viewReportDesign(jr); } }
  8. I am trying to create a jasper file using Dynamic Jasper and am getting the following error: ------------------------------- Exception in thread "main" java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/ICompilerRequestor at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:242) at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForRealName(JRClassLoader.java:161) at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForName(JRClassLoader.java:119) at net.sf.jasperreports.engine.JasperCompileManager.getCompiler(JasperCompileManager.java:528) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:220) at ar.com.fdvs.dj.core.DynamicJasperHelper.generateJasperReport(DynamicJasperHelper.java:540) at ar.com.fdvs.dj.core.DynamicJasperHelper.generateJRXML(DynamicJasperHelper.java:417) at dynamicjasper.report.FastReportTest.main(FastReportTest.java:88)
  9. Hi, I have a jasper report that queries on a view.. Is there any way to restrict that data in the view via a role. i.e. the user can view specific data based on role? One way to do that would be to specify the Role as input parameter to the report, and then append the parameter to the where clause...Disadvantage of this method is that the user would have to select a role for every run of the report, and the same thing needs to be done for every report that customer develops.. Is there any other way to implement data security in Jasper report?
×
×
  • Create New...