Jump to content

bthale

Members
  • Posts

    23
  • Joined

  • Last visited

bthale's Achievements

Explorer

Explorer (4/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Collaborator Rare

Recent Badges

0

Reputation

  1. Is bold, italic, etc supported in text files using JRTextExporter?????
  2. We have many reports in plain text. It seems that setting the bold or italic for a text field doesn't work. <staticText> <reportElement x="0" y="10" width="177" height="14"/> <textElement> <font isBold="true"/> </textElement> <text><![CDATA[DELIVERER INFORMATION]]></text> </staticText>
  3. Why don't you just precompile and place inside your jar file? Then you simply use the path name to the compiled report when you create the InputStream. Example: InputStream is = (InputStream) JRLoader.getResourceInputStream("com/path/jasper/MyReport.jasper"); Post Edited by bthale at 05/02/2012 15:29
  4. I'm not sure if you are already doing this but I would make sure that A. Parameter is defined as String in jrxml B. Declare you HasMap like HashMap<String,String>(); C. Check your typing for mistakes D. Try the query in your DB program to verify it brings back expected results
  5. We have nmany plaintext reports and there seems to be a bug in detail lines. A blank line will show up in detail bands. Sometimes every 15th line, sometimes every 20 lines, and this is random per report. With in a report the blank line is usually constant. We have been somewhat successful by making the detail band the same height as text fields. But it doesn't always work. None of the text fileds are allowed stretch as we will just truncate if necessary. What can be causing this and how could I fix it? This does not happen when exporting as PDF or Docx for example. Just plaintext.
  6. I am generating a report usig the JRSwapFileVirtualizer class. The javadocs state that the cleanup() method dispose of the the file, but it's not working. The swap file remains. What's the correct way to dispoase of the file after the report is run?
  7. I have a report where a text field has to be a fixed width. The current font and size holds 16 characters. If there are more in the data, that's ok. The problem is that Japser is truncating at the last space. I want it to truncate at character 16. I have tried setting property net.sf.jasperreports.print.keep.full.text but this doesn't work. What should I do to make sure it doesn't truncate at the last space?
  8. And what variable would that be? Maybe REPORT_COUNT but I would need to know if the REPORT_COUNT is less than the REPORT_DATA_SOURCE size, and as far as I know, REPORT_DATA_SOURCE only has two methods, next() and getFieldValue(). It would be nice if you could use something like size() and indexValue()
  9. I have a requirement to add a string "continued", when detail data over runs to another page. Does anyone know how to accomplish this? My first thoughts are to use a scriptlet and override beforeDetailEval() and afterDetailEval(), but not sure if it would be too early or too late to determine detail content is finished. the detail data is a subreport with a single line of height 14.
  10. Also - there is no calcuation, just trying to return a string that is only available in the subreport
  11. I followed these instruction, but still get null returned. I know the variable is not null in the subreport, because I am displayiing it for debugging purposes. There is also a calculation setting in the dialogs where you define a return variable. I'm not sure if it should be set to System also, but there is no option in the dropdown for System. Is this a bug?
  12. Anybody have an idea of how to get this done? I've tried several combinations of settnigs on the variables, but still get nothing back - just prints null.
  13. Where is the jasper report file located? In the root directory of D drive? If so your code should read jasperPrint = JasperFillManager.fillReport("D:/devreportjob_Main.jasper", parameters, timecardListDataSource); Add a forward slash to the file location
  14. I have a subreport that needs to return a string variable. I need this variable displayed in the Page Header. I have tried evaluation times of Now, Report, and Band, but alwys get null. I have debigged the data and the subreport variable is getting it's value from a field in the subreport. This field is not null. How do I get the correct data back from the subreport. Do I need to have the variable calculation set to something other than nothing?
  15. I am trying to use a local class in my report. I used the <import> element with the full classpath. The class is in the proper directory, and I have added the classpath to iReport as well. I still get class not found errors. What more do I have to do? The jrxml file is also in the classes directory and part of the project packages. <import value="com.theocc.positions.batch.eor.valueobject.ExpiringPositionsSummary"/> <parameter name="activityDate" class="java.lang.String"/> <parameter name="systemDate" class="java.lang.String"/> <parameter name="systemTime" class="java.lang.String"/> <parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false"> <defaultValueExpression><![CDATA["com/theocc/positions/batch/jasper/"]]></defaultValueExpression> </parameter> <parameter name="reportName" class="java.lang.String"/> <parameter name="schemaDescr" class="java.lang.String"/> <queryString> <![CDATA[]]> </queryString> <field name="indexPositionSummary" class="com.theocc.positions.batch.eor.valueobject.ExpiringPositionsSummary"/> <field name="equityPositionSummary" class="com.theocc.positions.batch.eor.valueobject.ExpiringPositionsSummary"/> <field name="indexPositionITM" class="com.theocc.positions.batch.eor.valueobject.ExpiringPositionsSummary"/> <field name="equityPositionITM" class="com.theocc.positions.batch.eor.valueobject.ExpiringPositionsSummary"/> [jrc] 1. java.lang.ClassNotFoundException: com.theocc.positions.batch.eor.valueobject.ExpiringPositionsSummary [jrc] 2. java.lang.ClassNotFoundException: com.theocc.positions.batch.eor.valueobject.ExpiringPositionsSummary [jrc] 3. java.lang.ClassNotFoundException: com.theocc.positions.batch.eor.valueobject.ExpiringPositionsSummary [jrc] 4. java.lang.ClassNotFoundException: com.theocc.positions.batch.eor.valueobject.ExpiringPositionsSummary
×
×
  • Create New...