Jasper Report Desginer does not show static text or text field - jasper-reports

Originally my report is created in v5.2.0. My report also uses resource bundles file. When open in eclipse using ireport designer plugin v 5.2.0, it can show all - static text and text field.
But when I am using ireport designer v5.1.0. It shows nothing. like
Do I need to configure something in iReport Designer?? Am I missing something??

I have had this happen because of the size of the static text box in relation to the font size. If the Font size is too large, it will cause the text to wrap to the next line and out of the frame. I am guessing that different versions of iReport have different thresholds before the wrapping occurs.
What I ended up doing to verify this was to make the box bigger until the text appeared. Then I played with the Font size until it would fit in the size box I needed.

I would not worry about the display problem. When the report is generated all text should be shown. If not set the options "Print when detail overflows" and "Stretch with overflow". The latter option is only available within dynamic text fields.

In my case my XML formatter "helpfully" put a new line inside my CDATA['s!!

Related

Fillable Pdf multi-line, Allow rich text formatting in Acrobat Pro DC: but it ignores line spacing/leading set in More

I'm on Win10, using Acrobat Pro DC 2021.011... to edit and Reader DC (same version) to test.
From experience and from reading forums etc, forms in these apps are maddening... but I have not been able to find any discussion (or solutions) to the following behavior...
The form I'm building for other employees' use has a large edit text box set to Multi-line and Allow Rich Text Formatting. It is set to a default font, Calibri and size 50pt. For most situations this will work for them; provides 2-3 lines for a short product description. But occasionally they want a smaller font and more lines... They know how to get the ctrl+e properties bar. But in my testing of this alternative situation they'll need sometimes, I'm finding it's impossible to get the smaller font size and more lines to work. Here's my process.
tab into text box. Ctrl+E for properties bar.
before typing I set the font size to 24
then I type in my 4 lines of text
then I tab to my next form field...
and kaboom... the field I just filled...it's line height is so large it's pushed some of the content invisible. I assume this is coming from the field's default font size, 50
And if I try to adjust the line height, by selecting all the text and then choosing in More...>Form Field Text Properties>Paragraph>Line Spacing
If I set it to Single and click Close/click into another field I get the very large leading (presumably for 50pt font (same as pic above after point 5)
If I choose Exactly and set to point size slightly larger, click Close/out of field, I get another ridiculous result where the 2/3 line have the height I set, but the space between the 1 & 2 second line is way too much and the space between the last line and 3rd line is way too small...
before tabbing or clicking out of field to another field
Good lord.. what is that! 3 different leading values in the same field; just after applying 1 value to all lines, all text in the field...
It makes no sense... it doesn't look like it regards your input at all, and just comes up with it's own random leading... I've fiddled with Space before/after and combinations of Line Height and nothing comes close to what we need... At this point I'm convinced the Acrobat tools for a stylizing text in a multi-line, allow formatting text field are useless. I'd be better off with my employees they can't format anything, ever. Just type one line and hit Tab or Enter...
What is going on! I'm trying to make a simple fillable form for other employees to use, but this kind of behavior makes that impossible (It's enough of a stretch to teach them to use the ctrl+E and do some styling of their text but this is bonkers and completely unteachable... there's not rhyme or pattern to teach!)
Hope someone can help or has seen this behavior too.

How can I show checked CheckBox in Crystal Report

I have a parameter field 'EL' and formula field 'FormulaEL'. I write a formula as follows:
if {?EL}=1 then chr(254)
In preview the report shows checked CheckBox. but the problem is that if I run the program it is displayed as ( þ ) , not as checkedbox. How to solve the problem so that it is displayed as checked CheckBox?
Simple, a checkbox just evaluate to 'r' and set the font in the report for that field to webdings.
You could go a step further and use an image of a check instead, and conditionally surpress it when it's not required.
CHR(254) is a checkmark in the WindDings font but is the symbol you show above in most other fonts. It may be that you have Wingdings on the design PC but don't have Wingdings available at runtime so it is substituting another font. This font should be available on most windows PCs. You will have to install it if it is not available.
https://www.microsoft.com/typography/Fonts/font.aspx?FMID=1698
if ISNULL({coulmn_name}) then Chr(251) //shows x mark on the report
else if{coulmn_name} ='column_value' then Chr(252)//shows Tick mark in the report
// And change font to wingdings for the field in details section.

Label Printer with Crystal Reports

I have an Epson TM-L60 Label printer and I'm trying to make it cut the paper after printing a report label made in Crystal Reports (from Visual Studio). I have to do it programatically because it's an old printer and driver settings do not allow me to set options like "single label cut".
Is there perhaps a command I can use? But how do I send it from code?
According to the manual you print a capital F in the font size 10 and with a font name of "control". I would have thought if you put an F where you want the cut to happen, in that font size and name it may work. You'll have to try!

How to draw a line above a picture?

How do you display a line above a picture in Crystal Reports? I'm currently using Crystal Reports 8.5.
I am using a jpeg image in the report, with an image header section set to “Underlay Following sections”.
I added another header above the image header section, drew the line, and then gave the option “underlay following sections”, but the line is not displaying above the picture.
How can I add a line that will display above the picture?
There's a developer-provided workaround here, using textboxes: http://scn.sap.com/thread/1916479
Insert a text object and enter nothing.
Change the size (the height matches the line width) and background (background color matches the line color).
Right click on the text object and select Move | To Front. And then the "line" will be on top of the picture.
Unforunately, using Crystal Reports 2008, this would only allow me to shrink the textbox to a certain height (0.042 inches), which was still too big for a 1-pixel line.
If I understand your question, you want to add a line to an image in Crystal Report. Unfortunately, you won't be able to do this with Crystal Reports. Your best option is simply to draw a line above the image. If there is an issue with placement of the line, add another section above the section that contains the image.
A little late response, but this CodeProject answer works. I had the same problem and this workaround did the trick. I quote the answer here.
Create 2 separate reports. The 1st report will be the main report and the 2nd will be a subreport.
Place all page headers and footers on the main report.
(Main Report)
Right click on the PageHeaderSection and insert section below.
On the new PageHeaderSection, insert the image(your watermark) and set the section to Underlay Following Sections.
(Subreport)
Go to your subreport and place your data and lines on it.
(Main Report)
Again, right click on the PageHeaderSection and insert section below.
On the new PageHeaderSection, right click, Insert->Subreport
Select Choose a Crystal Report in a project, then click the 2nd report you've created. Voila! The lines will be now on the top of the
image! Just be sure to remove the borders of your subreport.
an easy way I added a line is:
add a text box (length of the line you want)
right click -> format text
click on the tab border
select either top or bottom border, the line style etc etc
You can draw a line or a box to appear on top of images.
To do this:
1- Go to Report Options.
2- Check the option Draw Line And Box On Top, and click OK.
Now you can draw over the images.
I've never tried to do this before now, but it appears that the Z order functions (under the Move menu- to back, to front, etc...) are not available for lines or images and it appears that the image z order is always above the line even if you have multiple sections and use the "underlay following sections" option.
My answer is that this can not be done the way you are trying to do it, but what if you try another way.
EDIT:
I'm assuming that you are trying to create a strike through in the image in certain instances. Assuming that, you should be able to have 2 images (one normal and one with the line through it) that you should then be able to dynamically change based on you're criteria. You should be able to find many articles on dynamically changing the Crystal Report image. Hope this helps.
What worked for me was to create a subreport that essentially duplicates/replaces the Details. Then the usual process of putting the image in the page header and underlaying following sections. The subreport, including its lines, appear above the watermark for me, but please note I'm using Crystal XI.
If I understand your question correctly - In the header section, use the line tool to draw the line. It's in the CR Toolbox. Then drag your image after the line.

Crystal Reports text cuts off last line in Details section

I have a Crystal Report 11 file that is a letter. The first Details section contains a large text box that has print date, address block, and the salutation line. Every once in a while, the last line of the text box gets cut off so that the salutation isn't seen. It's very inconsistent in that sometimes, I run the report for one person in my system and the text is cut off, but if I run the report a few hours later for the same person, without having changed the values of the address or name in my database, then the letter looks fine.
I increased the text box height and the Details section height, but the problem still occurs intermittently. Has this happened to anyone else, or does anyone have an idea what could be causing this?
Normally this should be working if you check the "Can Grow" option in the common tab of the "Format Field/Text" settings. With that option checked it shouldn't matter which height you set.
This is difficult problem that you have to attack from 3 different fronts:
Software Hot Fix
Default Printer
Form Authoring
Software Hot Fix: You'll need to download the CRRuntime that includes Hot Fix 20. This Hot Fix addresses truncation problems when making a PDF. You can find it at http://downloads.businessobjects.com/akdlm/crnetruntime/clickonce/CRRuntime_64bit_13_0_20.msi
Default Printer: The printer you use when authoring a report must match a printer when you are rendering a report. On our servers, there are no printers installed except the Microsoft XPS Document Writer. Be sure to select that as your default printer when writing the report.
Form Authoring: When you add a database field to your report, don't drag it from the field explorer onto the design surface. First insert a text object onto the design surface. When you've positioned and sized it, then drag the database field onto the Text Object. For whatever reason, the database field will wrap better when it is enclosed by a text object.