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

ranjitmishra

Members
  • Posts

    28
  • 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 ranjitmishra

  1. The font size in PDF output does not match the size set in iReport. And when we compare the .pdf and .pptx outputs, it appears to be bigger in pdf. For example, I've a text box to print a lengthy string(which is dynamic and coming from the query) in my report. The font is set to Callibri/8 in iReports. There are times when the same string wraps to 2 lines in the ppt output, but the same same string wraps into 3 lines in pdf output. Hope this makes sense. My question is, is there anything we can do here so that the string appears the same in both outputs? It should either wrap to 2 lines or to 3 lines in both outputs. My client is very particular about these things. :( Please help!!!
  2. Is there a way to catch the rendering format inside the report at run time? For example, I want to put the output type name in a text box in the report. if the pdf version is run then the value will be "pdf" or if html version is run then the value should be "html". Is this possible? Any iReport property?
  3. How are your subreports placed in the main report? Are they placed one below the another? If yes, then you can change the position type to "float" for all the sub reports except the top one.
  4. Is it possible to run a html output from iReport with all the images embeded in the report itself? There should only be the .html files and not any other folders for image files. Is it possible at all??
  5. I've used a Table element with 2 columns. There are 2 text boxes in separate columns. For both of them strech type is "Relative to tallest object". But its not working as expected. Is this a bug??
  6. I'm trying to print a report from xlsx o/p. The report is designed in landscape mode and prints in the same mode for other o/ps like PDF, html, xls etc. But when printing from xlsx, it always prints it as potrait, hence I'm not able to get a proper print. Is this a bug? Are there any work arounds?
  7. Don't give anything in print when exp. In the report put some text box with whatever u want to display e.g. "No Data", in the noData band. When there is no data it will automatically display ur text.
  8. I've added this in my jrxml: <property name="net.sf.jasperreports.export.html.exclude.origin.keep.first.band.1" value="pageFooter"/> Actually it was printing the page footers twice in the html o/p. What this piece of code does is, excludes one of them in case of html o/p. Post Edited by ranjitzulu at 03/21/2012 06:44
  9. the isFile() works for me. I did this: (new File("C:\\temp\\client_logo.jpg")).isFile()? "C:\\temp\\client_logo.jpg" : "E:\\temp\\default_logo.jpg"
  10. In ireports, right click -> band properties -> in the pop up u can see the noData band on the left hand side. specify the size for it and click 'Apply". Then u'll be able to see it on the report.
  11. You can use the "noData" band for printing you message when thr is no data.
  12. Set "Strech Type" = Relative to Tallest Object for all the fields.
  13. You can use the group option here. Put the subreports in the group and select the group option: Start on a new page.
  14. It is possible to show/hide bands or groups or the report based on its export type. I think this is not possible for individual elements like a text element or an image. In order to do this u can include this in your jrxml: <property name="net.sf.jasperreports.export.pdf.exclude.origin.band.1" value="pageHeader"/> The texts in red bold italics can be changed as per your requirement. You can find some more explanation here.
  15. No need to put anything in print when exp. Just put the fields in the appropriate bands as mentioned above and that will take care of the things.
  16. Create 2 groups. 1. State group by state name (outer group) 2. District group by dis. name (inner group) Print state and district name in 'district' group header band. Print district details in the detail band. And put the 'State' and 'Year' in 'state' group footer.
  17. The summary of my report needs to be in a new page along with the report header and footer. Footer contains the default page number option i.e. Page x of y. So I checked/ticked the below options in iReports. - Summery On New page - Summery with page Header & Footer This works fine with a pdf output. But in html or excel outputs the footer in getting printed twice in the o/p. (since in these o/ps the reports comes up in one page) Anyone knows a solution for this to restrict the footer to print only once. I use iReports 4.0.2.
  18. If you are passing the $V{PAGE_NUMBER} variable to the subreport to achieve this, then I don't think its possible(but I'm no expert /tools/fckeditor/editor/images/smiley/msn/regular_smile.gif) to pass the total number of pages (which is the y) to the subreport. If you could post ur exact requirements then we might see if there is a work around.
  19. The only issue I see here is as per this line in the stack trace, "Caused by: org.mozilla.javascript.EvaluatorException: Cannot convert 2011-07-20 10:10:29.0 to java.lang.Number " I guess your variable class is still set to java.lang.Number.
  20. No, on the last page only the last page footer will be printed.
  21. Not sure what exactly you mean by List. Anything you put in "Page Header" band, will get printed for each page. You can put your list header there.
  22. What you can do in LAST PAGE FOOTER is, put all the other things that you want to show in the normal page footer along with this "special" something you want to print above them. So the page footer and LAST PAGE FOOTER will be the same except the last page footer has this extra value.
×
×
  • Create New...