Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: How to make a header visible as false Post Reply Post New Topic
Author Message
cmrhema
Newbie
Newbie


Joined: 13 May 2008
Online Status: Offline
Posts: 4
Quote cmrhema Replybullet Topic: How to make a header visible as false
    Posted: 29 Jul 2008 at 12:50am
Hi

I have two objects in Crystal Report itextobject and fieldobject,
in the fieldobject i will pass the parameter values from VC#.net


I have wriiten the code as
 ParameterFields parameterFields2 = CrystalReportViewer1.ParameterFieldInfo;
                ParameterValues currentParameterValues2 = new ParameterValues();
                //adding values
                ParameterDiscreteValue parameterDiscreteValue2 = new ParameterDiscreteValue();
                parameterDiscreteValue2.Value = NameofEmp
                currentParameterValues2.Add(parameterDiscreteValue2);
                ParameterField parameterField2 = parameterFields2[2];
                parameterField2.CurrentValues = currentParameterValues2;


Now what i want is  the the NameofEmp is null then I dont want the header to be visible , thats i dont want the itextfield to be visible.

Kindly let me know how to do that

regards
cmrhema
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 29 Jul 2008 at 3:00pm
Have you tried doing this in the report itself?  Go to the Section Expert.  Select the Header section and click on the "x-1" button to the right of "Suppress".  Using the name of your parameter, type "IsNull({?ParameterName})" in the formula area.  Save and close.
 
-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.031 seconds.