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

RicKaufman

Members
  • Posts

    15
  • Joined

  • Last visited

RicKaufman's Achievements

Apprentice

Apprentice (3/14)

  • First Post Rare
  • Collaborator Rare
  • Conversation Starter Rare
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. Here's some more information. I set it up so it sets the data to change the last letter each time through. So the data is: MBHA MBHB MBHC MBHD etc. The results are that for most of the letters, it puts the final letter on the next line, but for a few of them it doesn't. For example, 'L', 'I', and 'J' all show up properly, with al 4 letters on the same line, but most of the rest of the letters put the 4th letter on a new line. Please see the attached screen shot. Thanks! Rick
  2. Here is some further infomration: The data in the field in question is coming directly from the SQL database. Here is the data: mysql> select insName from ReportT +------------+ | insName | +------------+ | MBHP | | MBHP | | BEACON-NHP | | MBHP | | MBHP | | MBHP | | BEACON-NHP | | MBHP | | MBHP | | MBHP | | MBHP | | MBHP | | MBHP | | MBHP | | MBHP | | MBHP | | BEACON-BMC | | MBHP | | MBHP | | MBHP | | MBHP | | MBHP | | MBHP | | MBHP | | MBHP | | BEACON-BMC | | BEACON-NHP | | BEACON-BMC | | BEACON-NHP | | MBHP | | MBHP | | BEACON-BMC | | MBHP | | BEACON-NHP | | MBHP | | MBHP | | MBHP | | MBHP | | MBHP | | MBHP | | MBHP | | BEACON-BMC | | BEACON-NHP | | BEACON-BMC | | MBHP | | MBHP | | BEACON-NHP | | MBHP | | MBHP | | MBHP | | BEACON-NHP | | BEACON-NHP | | MBHP | | MBHP | | MBHP | | MBHP | | MBHP | | MBHP | | MBHP | | MBHP | | MBHP | +------------+ 61 rows in set (0.04 sec)
  3. Hi folks, I am having a strange issue with a pdf report. A field in my report is putting the last letter of the word on a different line, but only for one word, and only when it's PDF. The data in the field either equals "BEACON-NHP" or "MBHP". When I preview the report, this field shows up correctly. However, when I run the report and it creates the PDF file, this field shows either: BEACON-NHP or MBH P with the "P" on a new line. The field is clearly big enough, as "BEACON-NHP" is longer than "MBHP". Can anyone tell me why it is doing this and how to fix it? Thanks, Rick
  4. This worked fine yesterday, but this morning I see that it says pdf font has been deprecated. What are we supposed to use instead?
  5. Is there a way to make the page numbers start again at 1 with each group? I'm printing a large report, which is grouped by clinician. Each clinician's portion is several pages, and starts on a new page. I want to give each clinician their own portion, and I would like the page numbers to start over at 1 for each clinician. Is there a way to do this?
  6. I want the headings on my report to show as bold. I have made the fonts for those labels bold, and when I preview the report, they show as bold. However when I run the report, the resulting PDF shows the text as normal, not bold. Can anyone help me with this?
  7. I am a beginner with Jasper Reports and iReport, and I am having a problem with Scriptlets. Here is a recent post I put on the iReport forum: _________________________________ I'm having trouble getting my scriptlet to work properly. I have a report called Statistics Report. This is part of a larger java program called KLink. My scriptlet is called StatisticsReportScriptlet, and it is in the KLink package. Both the report and the scriptlet are located at C:/KLink. In iReport, I have created a scriptlet with the name StatisticsReportScriptlet, and the class StatisticsReportScriptlet. When I preview this report, I get the following error: Error filling print... java.lang.NoClassDefFoundError: StatisticsReportScriptlet (wrong name: KLink/StatisticsReportScriptlet) null java.lang.NoClassDefFoundError: StatisticsReportScriptlet (wrong name: KLink/StatisticsReportScriptlet) at java.lang.ClassLoader.defineClass1(Native Method) _______________________________ In playing around with it, I can sometimes get the scriptlet to work when I run it from the java program, but I have never been able to get it to work from a jar file, and now I can't get it to work at all. I would like to propose a specific agreement: I would be willing to pay $100 for email support to get my scriptlet to work, both when run from the java program and also when I make this into a jar file. If this is of interest to you, please e-mail me at RKaufman@BillingAdvantage.com Thanks, Rick Kaufman
  8. Hi folks, I'm having trouble getting my scriptlet to work properly. I have a report called Statistics Report. This is part of a larger java program called KLink. My scriptlet is called StatisticsReportScriptlet, and it is in the KLink package. Both the report and the scriptlet are located at C:/KLink. In iReport, I have created a scriptlet with the name StatisticsReportScriptlet, and the class StatisticsReportScriptlet. When I preview this report, I get the following error: Error filling print... java.lang.NoClassDefFoundError: StatisticsReportScriptlet (wrong name: KLink/StatisticsReportScriptlet) null java.lang.NoClassDefFoundError: StatisticsReportScriptlet (wrong name: KLink/StatisticsReportScriptlet) at java.lang.ClassLoader.defineClass1(Native Method) Can anyone help me with this? Thanks! Rick
  9. Reset type for this variable is report, so I still don't understand why it was re-setting to null on the second page.
  10. I have a variable that I was setting through a scriptlet, and I was using the method afterReportInit(). This worked fine for the first page, but when it printed on the second page, the value was null. I changed to using the method afterPageInit(), and this worked fine, but I'm confused as to why the variable value would have been re-set to null before I made this change. Can anyone explain this to me? Thanks, Rick
  11. Hi, I'm trying to find an efficient way to escape data. The data stored in the table my report uses has been escaped to deal with special charaters. I have java code that will unescape it, and I'm trying to find a good way to use this over several reports. I came up with one solution that works, but it is cumbersome. I've written a scriptlet that unescapes the data, and sets the vaue of a variable to the new, unescaped string. My report then uses this variable. This solution works, but I have to write an entry in the scriptlet for every field of every report. An intermediate solution would be this: if I could get the field name in the Scriptlet, I could have each report use a variable with a predictable name, such as adding '_esc' after the field name. For example, if I had a field called 'LName', I could have the report use a variable called 'LName_esc'. Then I would only need one entry in the scriptlet that would escape the data and store the result in the field name with '_esc' appended to it. However, I haven't found a way to get the field name in the scriptlet. I suspect, though, that there is a much easier way to achieve this goal, as it must be one that comes up a lot. Any suggestions? Thanks, Rick
  12. Hi, I'm new to iReport, and I have question about aligning text. My report has a title that is passed to it through a parameter, and the title can be of different lengths. I am able to center the report field and make it large enough to accomdate the longest title I will need, but I want to center the text within the title field, and I can't figure out how to do that. Can someone help with this? Thanks, Rick Kaufman
×
×
  • Create New...