Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: supress fields Post Reply Post New Topic
Author Message
marcstrong
Newbie
Newbie


Joined: 08 Apr 2012
Online Status: Offline
Posts: 9
Quote marcstrong Replybullet Topic: supress fields
     Posted: 18 Sep 2012 at 10:27pm
Hi

I'm using the following code to supress a field heading at run-time

 Dim myReport As New CrystalReport1
        Dim myText As CrystalDecisions.CrystalReports.Engine.TextObject
       
        myText = CType(myReport.ReportDefinition.ReportObjects.Item("Text4"), CrystalDecisions.CrystalReports.Engine.TextObject)
        myText.ObjectFormat.EnableSuppress = True
        CrystalReportViewer1.ReportSource = myReport

However, I also would like to supress a field using a similar method.

Can anyone advise if this is possible?
IP IP Logged
hilfy
Admin Group
Admin Group
Avatar

Joined: 20 Nov 2006
Online Status: Offline
Posts: 3702
Quote hilfy Replybullet Posted: 20 Sep 2012 at 5:16am
AFAIK, you should be able to do this with no problems.  You may want to embed the field in a text object (just place the text object and then drag the field into it) to make it easier to find in your code.  Then you could easily modify your existing code to suppress that text object.
 
-Dell
IP IP Logged
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