on 06-07-2013 12:30 PM
Hello all,
I found it chellenging to draw lines over textbox in Crystal reports.
I got the latest version 14.0.2 or 2011.
Please see the attached screenshot, where I have coloured textboxes for section header background, and I also need to draw borders over the columns. The line object seems to never draw on top of textbox.
I have tried to move line to front and move textbox to back, but it didn't help.
Any idea or a way around please?
Many thanks
Best
Yang
Oh, I found the solution myself.
There are some difference between a "text object" and a "box object".
The box object seems to stay in the back, whilst a text box object stay in front.
The attached screenshot shows how I did it. The downside of a "box object" is that you cann't add text in it, but you could use "text object" on top of it to show text.
Cheers all.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I tried the other way. Download webdings fonts- its not a biggie.
Create a variable/formula and just type this "Chr(124)".
This will give you a line in the formula output.
Place it in conjunction with the line. But here is a trick:
If you put that formula inside the Grey text box, it will not work and just output formula_name
but if you increase its height and overlap it the grey text box, Then it will be fine.
Last thing you have to struggle is finding the desired fontsize, and based on that increase or decrease the width of the lines.
In my case, font size for the formula is 24, and width of the line is 2pt.
see the screen shot.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Oh wait! I've been misinterpreting the issue until now and I guess I understand what you're trying to say.
I don't have CR designer on my machine at the moment, but can you try this and let me know if this works:
1) Insert the Line in a separate section below the Text object
2) Go to the Section Expert and select the section that holds the text object > check "Underlay Following sections"
I have a feeling that the line might just get superimposed on the Text Box.
If it doesn't work then I guess you'll have to divide your existing Text object into two Text objects and have the right/left borders turned on.
-Abhilash
Hi Yang,
I can see the vertical line besides the "Actual Vs Tender Cost" column, however, its still not very clear how you want it to appear. Can you attach a screenshot of the 'preview' mode and point out.
-Prathamesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Yang,
I always prefer inserting line objects in a separate section.
So, let's say you're trying to draw a line after Details Section, insert a Details Section b and place the Line Object here. Reduce the size of the section so there's no blank space above or below the line.
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok I see.
Such issues are really very hard to troubleshoot to be honest. I've been through such situations before not knowing what causes the lines to disappear.
Could you try adding the Line Object again, or add a 2nd Line Object beside the original one and see if it kind of triggers something!
Otherwise, please attach a copy of the report with saved data and I'll test it. To attach the report, change its extension from .rpt to .txt and click the 'Use advanced editor' link in the reply window.
-Abhilash
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.