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

avinash.moram

Members
  • Posts

    7
  • Joined

  • Last visited

avinash.moram's Achievements

Rookie

Rookie (2/14)

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

Recent Badges

0

Reputation

  1. Hello All, I have implemented a lot of reports using jasperserver as well as the net.sf.jasperreports api also.. Now I want to install jasperserver on resin, while installing it doesn't show the resin server in the drop down list of application servers.. I checked the install guides also, but they just show tomcat, mysql. I tried searching this form but not able to find anything on installing jasperserver on resin. Does the jasperserver installs on resin?? Thanks in advance, Avinash. Post edited by: avinash.moram, at: 2008/05/15 11:41
  2. Hey All, I have come with an implementation like the following code, As i have to use the methods in JRAbstractExporter and JRPrintHyperlink, i have implemented them in a class and calling that class for generating the report. The code is as follows: Code:import java.util.Map; import net.sf.jasperreports.engine.JRException; import net.sf.jasperreports.engine.JRPrintHyperlink; import net.sf.jasperreports.engine.JRPrintHyperlinkParameter; import net.sf.jasperreports.engine.JRPrintHyperlinkParameters; import net.sf.jasperreports.engine.JasperPrint; import net.sf.jasperreports.engine.base.JRBasePrintHyperlink; import net.sf.jasperreports.engine.export.JRHtmlExporter; import net.sf.jasperreports.engine.export.JRHtmlExporterParameter; public class JRHtmlExporterClass extends JRHtmlExporter { public void export(Map<String, Object> pMap,String pPath, JasperPrint pJP) { String linkType = "ReportExecution"; String hyperlinkReference = "classpath:reports/customer-service-reports/catalogItemReports/catalogItem_by_gameId.jasper"; //Creating the Parameters, these are the parameters which i set in parameters tab of hyperlink option in jasper reports JRPrintHyperlinkParameter lPrintHyperlinkParameter1 = new JRPrintHyperlinkParameter("pGameId",new java.lang.String(),"$F{game_gameId}"«»); //JRPrintHyperlinkParameter lPrintHyperlinkParameter2 = new JRPrintHyperlinkParameter("_report",new java.lang.String(),"classpath:/reports/customer-service-reports/catalogItemReports/catalogItem_by_gameId.jasper"«»); System.out.println("Creating the Parameters=========="«»); // Adding Parameters JRPrintHyperlinkParameters lHyperlinkParameters = new JRPrintHyperlinkParameters(); lHyperlinkParameters.addParameter(lPrintHyperlinkParameter1); //lHyperlinkParameters.addParameter(lPrintHyperlinkParameter2); System.out.println("Adding Parameters========"«»); // setting parameters, hyperlink type and hyperlink target JRPrintHyperlink lHyperlink = new JRBasePrintHyperlink(); lHyperlink.setHyperlinkParameters(lHyperlinkParameters); lHyperlink.setLinkType(linkType); //lHyperlink. setHyperlinkReference(hyperlinkReference); System.out.println("setting parameters, hyperlink type and hyperlink starting"«»); this.startHyperlink(lHyperlink); System.out.println("Starting Hyperlink"«»); this.setHyperlinkProducerFactory(); System.out.println("Setting the hyperlink producer factory"«»); this.setParameters(pMap); this.setParameter(JRHtmlExporterParameter.JASPER_PRINT, pMap.get("JASPER_PRINT"«»)); this.setHyperlinkProducerFactory(); this.setParameter(JRHtmlExporterParameter.OUTPUT_WRITER, pMap.get("OUTPUT_WRITER"«»)); this.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, pMap.get("IS_USING_IMAGES_TO_ALIGN"«»)); this.setParameter(JRHtmlExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS, pMap.get("IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS"«»)); this.exportReport(); System.out.println("after export report"«»); } I don't why its not displaying any link in my generated report. I am using a custom link type called "ReportExecution", i set that through setLinkType, but everything in vain.. I am in xtream need of this drill down.. So can anybody pull me out of this stuff would be grateful.. Thanks in Adv, Avinash.
  3. Hello All, isn't there anybody who knows how to implement the custom type hyperlink in jasper reports..? Thnx, Avinash.
  4. Hello All, isn't there anybody who knows how to implement the custom type hyperlink in jasper reports..? Thnx, Avinash.
  5. Hi All, I'm using JRHtmlExporter to display my report pages on browser. Now, in case if generated reports are having hyperlinks, how can i implement them here. here is my code.. if(lFile.equalsIgnoreCase(pReportName)){ Resource lResource = getApplicationContext().getResource(lFile); InputStream lInputStrm = lResource.getInputStream(); jasperPrint = JasperFillManager.fillReport(lInputStrm, pMap, lCon); this is how i fill my report and return the jasperPrint object to the JRHtmlExporter and generate the report as following.. JRHtmlExporter lHtmlViewer = new JRHtmlExporter(); lHtmlViewer.setParameters(lMap); lHtmlViewer.setParameter(JRHtmlExporterParameter.JASPER_PRINT, lResponse.getJasperPrint()); lHtmlViewer.setParameter(JRHtmlExporterParameter.OUTPUT_WRITER, response.getWriter()); lHtmlViewer.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN, false); lHtmlViewer.setParameter(JRHtmlExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS, true); lHtmlViewer.exportReport(); ...And i found an interface in net.sf.jasperreports.engine.JRPrintHyperlink I don't know how useful or how to use this, can somebody help out of this pit.. it would be greatful. Thanks, Avinash.
  6. Hi All, I have a situation that i have to display the complete field description, but the field length is too long to be displayed. So i used the hyperlink tab and set the values as following: hyperlink type--->Reference Hyperlink Reference Expression--->"" Hyperlink Tool Tip Expression--->$F{Description} I am able to get the description on mouse over, but the thing is when i click on it, it gives an error that the path has to be set, ans sometimes navigating to the previous page. Could somebody help me out in this or suggest me any other possible solution, it would be thankful. Thanks in Advance, Avinash.
  7. hi, right click on the text box for which you want to keep the hyperlink, select hyperlink tab select hyperlink target as "self" and hyperlink type as "ReportExecution"(edit it). now click on the link parameters tab and add a parameter _report in 'link parameter name' and url in 'value expression' where you want to navigate(link) and add the parameters and their values accordingly. Thnx, Avinash.
×
×
  • Create New...