How to draw a line above the picture?

How do you show the line above the image in Crystal Reports? I am currently using Crystal Reports 8.5.

I use a jpeg image in the report, and the image header section is set to "Underlay following sections".

I added one more heading over the heading section of the image, drew a line and then gave the option “overlay the following sections”, but the line does not appear above the image.

How to add a line that will be displayed above the image?

+2
source share
6 answers

If I understand your question, you want to add a line to the image in Crystal Report. Unfortunately, you cannot do this with Crystal Reports. Your best option is to simply draw a line above the image. If there is a problem with the placement of the line, add another section above the section that contains the image.

+2
source

Here's a workaround for developers using text fields: http://scn.sap.com/thread/1916479

  • Insert a text object and enter nothing.
  • Change the size (the height corresponds to the width of the line) and the background (the background color corresponds to the color of the line).
  • Right-click on the text object and select "Move | To Front. And then the" line "will be on top of the image.

Fortunately, using Crystal Reports 2008, this will allow me to compress the text field to a specific height (0.042 inches) that was too large for a 1-pixel row.

+2
source

A bit late answer, but this one works with CodeProject's answer. I had the same problem and this workaround did the trick. I quote the answer here.

  • Create 2 separate reports. The first report will be the main report, and the second will be the report.
  • Place all headers and footers in the main report.

(Main report)

  1. Right-click on the PageHeaderSection section and paste below.
  2. On the new PageHeaderSection, paste the image (your watermark) and set the "Substrate by Sections" section.

(report)

  1. Go to your report and place your data and rows on it.

(Main report)

  1. Right-click again on the PageHeaderSection section and paste below.
  2. On the new PageHeaderSection, right-click, Paste-> Signature
  3. Select "Select Crystal Report Report" in the project, and then click on the 2nd report you created. Voila! The lines will now be on top of the image! Just remember to remove the borders of your report.
+1
source

I have never done this before, but it seems that functions of order Z (in the Move menu - back, forward, etc.) are not available for lines or images, and it seems that the order of the image z is always above the line, even if you have multiple sections and use the "underlay following sections" option.

My answer is that it is impossible to do the way you are trying to do it, but what if you try a different way.

EDIT: I assume that you are trying to create a strike in the image in certain cases. Assuming you should have 2 images (one normal and one with a line through it), which then should be dynamically changed depending on your criteria. You should find many articles on dynamically changing Crystal Report images. Hope this helps.

0
source

What worked for me was to create a subordinate report that essentially duplicates / replaces the details. Then the usual process of placing the image in the page header and lining the following sections. The subreport, including its lines, appears above the watermark for me, but please note that I am using Crystal XI.

0
source

If I understand your question correctly, use the line tool in the header section to draw a line. This is in the CR toolbar. Then drag the image after the line.

-1
source

All Articles