Print Page | Close Window

Images in Subreports

Printed From: Crystal Reports Book
Category: Crystal Reports 9 through 2020
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=22669
Printed Date: 03 May 2024 at 12:14am


Topic: Images in Subreports
Posted By: FECSII
Subject: Images in Subreports
Date Posted: 13 Sep 2018 at 4:47am
Hello -

I have a main report that contains two subreports in it. I have suppressed the main report header when the subreports run, so it shows the subreports headers instead.

Each header on all three reports have static images or picture images. I notice on occasion when I run the report, the subreports do not display the images, but all other data does display. I have no issues with the main report header images anytime the reports run.

Does anyone know why this happens and how to fix it? Is there a way to "lock" an image? I am inserting the pictures buy Insert, picture, and selecting the image file.

Any feedback would be greatly appreciated. Thanks in advance.



Replies:
Posted By: DBlank
Date Posted: 14 Sep 2018 at 5:01am
is there any conditional suppression on the image or section?


Posted By: FECSII
Date Posted: 14 Sep 2018 at 5:39am
Hello -

Yes, I have have a formula in the main report to suppress the header section once the subreports are run.

In the Main Report, page header section, condition to suppress:

whileprintingrecords;
global booleanvar no_header;

In the Main Report, report footer A section (where one subreport lives), condition to underlay following sections:

whileprintingrecords;
global booleanvar no_header:= true

In the Main Report, report footer B section (where the second subreport lives), condition to underlay following sections:

whileprintingrecords;
global booleanvar no_header:= true






Posted By: DBlank
Date Posted: 14 Sep 2018 at 6:25am
not entirely sure of how you are using logic here but keep in mind that if a section is suppressed and a subreport is in that section the subreport will not execute.



Print Page | Close Window