Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Sub Report issue Post Reply Post New Topic
Author Message
sarvesh
Newbie
Newbie
Avatar

Joined: 11 Dec 2008
Location: India
Online Status: Offline
Posts: 2
Quote sarvesh Replybullet Topic: Sub Report issue
    Posted: 19 Dec 2008 at 1:25am
I have a crystal report with three subreports.
SubReports are Personal Info, Education, Work Experience
Data in this reports is been filled by calling stored procedures.
Now Any of this subreport do not contain any data then i just want to hide that subreport while exporting
How to do that?
Sarvesh
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 19 Dec 2008 at 1:35pm

This is not difficult, although it will suppress the section completely when viewing AND exporting - there is no way to suppress for just export.

1.  On the section where the subreport is located, in the Section Expert turn on "Suppress Blank Section".
2.  For each section in the subreport, set the suppression formula for each section to something like:
 
IsNull({table.Some Key Field})
 
This will suppress all of the sections in the subreport if there is no data and the section in the main report will suppress because its contents are blank.
 
-Dell
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.016 seconds.