Jump to content
Changes to the Jaspersoft community edition download ×

ahpomal

Members
  • Posts

    4
  • 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 ahpomal

  1. I have a java application (servlet) that is called from a coldfusion front end. The front end accepts user parameters (report uri, format, etc) that are passed to the servlet. The servlet executes the requested report by issuing a run report web service call to jasperserver. The generated jasperprint object is exported in the desired format and passed on back to the coldfusion page that requested the report. This works fine, but the limitation is that columns on reports cannot be selected dynamically. I want to be able to select columns dynamically, and display only those columns on the report. Is there a way to integrate dynamicJasper in this scenario? Is there any other technology that can be applied in this case? Any help will be greatly appreciated.
  2. I have a coldfusion page that is calling a Java servlet using cfhttp call. This Java servlet is accessing Jasperserver via web services, and generating the report in the desired format and sending the response. The coldfusion page is supposed to use this response and display the report on the browser. When this servlet is invoked directly from the browser (and not via coldfusion cfhttp), the images display fine in the html format report. However, if the same servlet is invoked via cfhttp from coldfusion, the images are not showing up. I have a feeling that the default_jasper_print_session_attribute stored in the session is being lost when called through the cfhttp call, but I'm not sure. Any ideas on how to get this to work from coldfusion. Thanks ------------ if ("html".equalsIgnoreCase(reportformat)) { response.setContentType("text/html"); response.setCharacterEncoding("UTF-8"); request.getSession().setAttribute(net.sf.jasperreports.j2ee.servlets.ImageServlet.DEFAULT_JASPER_PRINT_SESSION_ATTRIBUTE,jp); exporter = new JRHtmlExporter(); // exporter.setParameter( // JRHtmlExporterParameter.IMAGES_URI,"image?image="); exporter.setParameter(JRHtmlExporterParameter.IS_USING_IMAGES_TO_ALIGN,Boolean.FALSE); String serverName = request.getServerName(); String serverPort = String.valueOf(request.getServerPort()); if (serverPort != null && serverPort.trim().length() > 0) serverName = serverName + ":" + serverPort + "/"; String servletPath = "jasper/"; exporter.setParameter(JRHtmlExporterParameter.IMAGES_URI, request.getScheme()+"://"+serverName+servletPath+"image?image="); ------------
  3. Were you able to successfully run a report by invoking JasperServer webservice from ColdFusion. I'm trying to do this from Coldfusion, and am getting an operation result with a return code of 0, but there's no report coming back. Would greatly appreciate your help. Thanks, Ashish
  4. I have JasperServer installed locally, and am trying to execute the runReport method from a ColdFusion page using JasperServer web service. Here's what I'm trying from ColdFusion: ----------------------- <cfset xmlReportRun = ""> <cfxml variable="xmlReportRun"> <request operationName="runReport" locale="en"> <argument name="RUN_OUTPUT_FORMAT">PDF</argument> <resourceDescriptor name="" wsType="" uriString="/reports/test1" isNew="false"> <label>null</label> </resourceDescriptor> </request> </cfxml> <cfdump var="#xmlReportRun#"> <cfinvoke webservice="http://localhost:8080/jasperserver/services/repository?wsdl" method="runReport" returnvariable="demoUserReport" username="jasperadmin" password="jasperadmin"> <cfinvokeargument name="requestXmlString" value="#xmlReportRun#"> </cfinvoke> <cfset xmlDoc = xmlParse(demoUserReport)> <cfdump var="#demoUserReport#"> <cfdump var="#xmlDoc#"> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>Test Report</title> <STYLE> BODY, TABLE {font-family: verdana,arial; font-size: 10px;} body,td,p,div,input,select,textarea { font-family: Verdana; font-size: 8pt; } </STYLE> </head> <body leftmargin="0" rightmargin="5" topmargin="0" bottommargin="0"> <table width="600" align="center"> <tr> <td align="center">TEST REPORTS</td> </tr> </table> <table width="600" align="center"> <tr> <td width="20"> </td> <td width="560"> </td> </tr> </table> </body> </html> --------------------------------- I was expecting the report to be returned and displayed in pdf format on the client browser. However, I'm not seeing any report displayed. The dump of the xmlDoc shows a return code of 0 (i.e. successful execution of request), but no report shows up. What do I need to do inorder to display the report. Any help will be GREATLY appreciated. Thanks, Ashish
×
×
  • Create New...