When using a chart (e.g. pie chart) inside a Crystal Report with a legend, the legend will contain a line with the sum of the values. The text used for the word "Total" seems to be fixed on the language of the Crystal Reports Library. For example, since I am using a German operating system, the text will always be "Summe".
Is there a way to translate the text or at least to hide it altogether?
For illustration:
Try this, it worked for me:
Open report in CR.
Set report do "Preview Mode" by clicking View -> Print Preview
When in "Preview Mode", select the Legend label you want to change the text of.
Right click on the Legend label and select "Edit Axis Label"
Then, select the chart, right click and select Chart Expert -> Apply template to group.
6 Save the modified report.
also check this:
http://kenhamady.com/cru/archives/1206
http://technet.microsoft.com/en-us/library/aa337170%28v=sql.100%29.aspx
Related
I have a requirement to show the text of the Bar chart Legend in Finnish. Currently, it is in English. I renamed the formula and modified the Chart Expert -> Data -> Show values{s) to use the latest formula.
Now it is changed to Finnish text as per requirement. This value is shown in the below image. How to hide # from the graph while running the report.
I'm using a Crystal Report connected with VB.NET 2010, here I using a Line object, which I need to show or hide depending on data field. Where do I need to set the formula?
This project I use is running with SQL 2008 and VB.NET 2010. I've tried some Formula Field for this topic. But the result is not look like that I want to show.
I use the following code on Formula Field:-
IF isNull({PrintParticularList.CUST_INVOICE_No}) or {PrintParticularList.CUST_INVOICE_No}=""
THEN
""
ELSE
"--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------"
I also try this following Code :-
IF isNull({PrintParticularList.SLNO}) or {PrintParticularList.CUST_INVOICE_No}=""
THEN
Line25.Suppress=True
ELSE
Line25.Suppress=False
But here I got error on Line25.
A number, currency amount,boolean, date, time, date-time, or string is
expected here.
In the Report Designer use the Insert Line tool to draw the line where you want it to appear on your report. The right-click the line object and select "Format Line..." to open the Format Editor dialog box. On this window you will find a check box labeled "Suppress" with an X-2 button to the right. Click the X-2 button and this will open a Formula Workshop window where you will enter the formula that determines if this drawing object should be suppressed or not.
I would recommend the following formula based upon your previous attempts at creating one.
IF isNull({PrintParticularList.SLNO}) or {PrintParticularList.CUST_INVOICE_No}="" THEN
True
ELSE
False
-----EDIT-----
Since you don't have the X-2 button I have 2 more ideas.
1.) Take the 1 section you current have and split it into 3 sections. Then you could place all the content above the line in the first section, place the line in the second section, and the content below the line in the third section. They use the formula to suppress the second section when the line is not needed.
2.) Insert a blank text box in place of the line and set either the top or bottom border of the text box to a single line. Then use the suppress formula to determine if the text box should be shown or hidden.
I want to import a text from HTML file in Crystal Reports 2008 for our software.
And I tried to make a formula for underline in Crystal to underline my text with dots no matter if the cell in HTML is empty or not. I mention that I search for 4 or 5 hours but nothing useful. Thanks for advice.
For example, i want to use dots to underline the formula for "{denumire_societate}"
Right click on your field and select Format Field
Border tab
Change Bottom -> Dotted
You can optionally create a formula if you want to present Dotted Underline with specific conditions
I want another answer because i want to underline only some words, and i don't wanna put them in separate text box because it will looks unesthetical.
In the picture, i got a text box with many words, formulas, etc, i want to underline a specific one like: {denumire_societate}, {adresa}, {nr_reg_com}, {cui}, {cont}, and the underline to be form by dots.
Text box
I want to color the header and footers row(only my data tables not the full section) of a crystal report . Its easy to color the section but i cannot able find a proper way
For this 3 way you achieve.
If both header/footer in different section than data, then go to section, right click on formating, give the color. Check this link
http://www.codeproject.com/Questions/56657/change-back-color-of-crystal-report
http://scn.sap.com/thread/1883125
Drag and drop and spread a crystal report field (like label) into entire length of row's width. Give the color formating by clicking on Right click -> format object -> color. Now your header/footer field which work as a column /summary get front of this above field.
You can give the color to all object and also do not give gap between them.
Step to color the object.
1. Select the items that you want to change, and select select Format, then select Format Text.
2. The Format Editor dialog box appears.
3. Select the Font tab.
4. Select the appropriate font, style, size, and color.
How to Change Legend Text of a Chart Object in Crystal Reports 10?
I did a report with chart by Crystal Report. The chart show me how many males and females there. So now the male enter to database as int = 0, and the females enter to database as int = 1, so in legend of chart display 0 = 226 and 1 = 44, means that the Males = 226, and the Females = 44. I need to make a formula that can change the 0 to Males, and the 1 to Females. please see the picture below:
See the Format Object I couldnot find any Display strings formula:
Obtained here:
I had the same dificulty and found de answer (at least for me, was the solution).
Below (I use CR 2008):
1. Open report in CR.
2. Set report do "Preview Mode" by clicking View -> Print Preview
3. When in "Preview Mode", select the Legend label you want to change the text of.
4. Right click on the Legend label and select "Edit Axis Label"
5. Then, select the chart, right click and select Chart Expert -> Apply template to group.
6 Save the modified report.
You had a formula "DisplayString" that does what you need, why don't you use this formula in the chart as values to show?
Instead of using the field directly, you can use the formula and problem solved!
Or is there something that prevents you from doing that?
create a formula field, give it the name you would like i.e. males, then assign it the value of the data field. use the formula field in the chart itself. now the legend will read #males and you will get correct data.
The only way I know how to change the data labels is by previewing the report, selecting a label, right-clicking on the label and then selecting "Edit Axis Label". It's called a label alias.