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

vamsikrishna

Members
  • Posts

    9
  • Joined

  • Last visited

vamsikrishna'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. Hi, Am developing a chart using JFreeCharts and passing this chart as image to the jasper report. Am not getting the image in the pdf. Am getting empty pdf but the size of pdf is 892 bytes. Am not understanding why this is happening. Suggest me a way how to pass the image(chart sent as image as parameter to the jasper report) . The thing here is i should not save image some where in the disk and pass the relative path of the image to the report. So the only option i have is to send the image content directly to the report as a parameter. Am sending the image to the report as parameter taking the type as java.awt.Image only. Even though am not getting image in pdf. So please help me Thanks in advance
  2. Hi Am passing two sets of JRBeanArrayDataSource s from java to jasper. Am sending datasources as parameters parameters.put("ds",datasource); parameters.put("ds1",datasource1); Here datasource and datasource1 are of type JRBeanArrayDataSource .In iReport am taking two parameters with the same name's ds and ds1 with Parameterclass as "net.sf.jasperreports.engine.data.JRBeanArrayDataSource". When i export data am getting null values in report. What might be the problem in this.Am using two datasources for the same report. Is that the problem? Please provide me the solution for this. I need two datasources for the same report. How can i do that. Thanks in advance
  3. hi my problem is solved by usingSHEET_NAMES, sheetNames); Earlier i tried sheetNames as a String.So am not able to get the sheetnames as i desired. Then i change sheetNames as an array then am able to get the sheetnames as i desired. Thanks for the timely help Post Edited by vamsi2250 at 11/29/2010 05:36
  4. ya i tried the above option but no use. Even i changed the exporter to JExcel ApiExporter and tried but also no use.
  5. Hi rajendra, The request flow is like this. UI--->ReportServlet------->Service Class----------->Generate report. This flow is common for all the reports. From UI request is going to ReportServlet where am deciding which jrxml to load and set all required things to send them to database. In Service class am setting all the report column header names as parameters which am going to retrieve in jasper. And the GenerateReport class will set required properties like IS_IGNORE_CELL_BORDER, IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS, IS_ONE_PAGE_PER_SHEET etc. This Generate report class is common for all the reports. So i cant add the code here to set sheet name. The only option i have is to send the sheet name as parameter(like column headers) and make use of it in jasper by using "net.sf.jasperreports.export.xls.sheet.names.all" property. But problem am facing here is "How can i set a parameter value(sheet name which is sent dynamically from java side to jasper) to a property like net.sf.jasperreports.export.xls.sheet.names.all". As per my requirement i dont have an option to set the sheet name in the java side.
  6. Ya rajendra i can go with that code. As i told my java code for generating reports is common for all the reports. The code which u gave will affect the other reprots if i chage that common java file(code used to generate report) . Suggest me a way where i can pass report name as parameter from a java class(called service class in my report) without using jasper properties in java. So that i can retrieve that report name in jasper and make use of it.
  7. Hi I will explain u my probelm clearly now My project is having many reports. In those,two reports are using same jrxml. And i wrote separate java file which contains the logic for generating the reports. So i cant use JRProperties class here. Am passing all the column headers and parameters to the report through a separate service(each report has separate service class)class. So now suggest me the ways how i can pass the report name from this service class and use it in jasper. I think u got my problem now Please help in this regard
  8. Hi, Am generating the report using java code. From java code am passing xls report name as parameter. I want to make use of this parameter value to set the name of report. My main objective is to set "net.sf.jasperreports.export.xls.sheet.names.all" property using a paramenter value. And i dont want to set "JRXlsAbstractExporterParameter.SHEET_NAMES" parameter in java. Thanks in Advance
  9. Hi How can i get excel report name dynamically? I am trying to use <propertyExpression>, but am not able to get. Am getting error if i use <propertyExpression> tag .Is there any possibility in jasper for resolveing this. Please help me. Its very urgent Thanks in advance Regards Vamsi Krishna
×
×
  • Create New...