Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2016 : Report Design
Message Icon Topic: Images in Subreports Post Reply Post New Topic
Author Message
FECSII
Newbie
Newbie
Avatar

Joined: 21 Sep 2009
Location: United States
Online Status: Offline
Posts: 15
Quote FECSII Replybullet Topic: Images in Subreports
    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.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 8937
Quote DBlank Replybullet Posted: 14 Sep 2018 at 5:01am
is there any conditional suppression on the image or section?
IP IP Logged
FECSII
Newbie
Newbie
Avatar

Joined: 21 Sep 2009
Location: United States
Online Status: Offline
Posts: 15
Quote FECSII Replybullet 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




IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 8937
Quote DBlank Replybullet 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.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.047 seconds.