|
-
Jun 15th, 2004, 09:05 AM
#1
Thread Starter
Fanatic Member
[Resoved] Suppress subreport
Does anyone know how to suppress a subreport in VB.Net 2003 using Crystal Reports 10 at runtime?
Thanks
Last edited by indydavid32; Jun 15th, 2004 at 03:11 PM.
David Wilhelm
-
Jun 15th, 2004, 03:02 PM
#2
You can't really suppress a subreport in runtime. But whatI've done in the past is this:
My DataTable has an extra column that will tell me whether or not I have to suppress the subreport. Then while in CR designer, right click on the subreport you want to supress and select FORMAT. Check the suppress checkbox and then click on the formula button (X2). Within your script check for the column value:
Code:
if {YourDataTable.YourColumn} = "YourValue" then
true
-
Jun 15th, 2004, 03:11 PM
#3
Thread Starter
Fanatic Member
Thanks Serge. Lucky for me, the only thing in this section of my report was the subreport so I just supressed the entire section. For anyone interested, this is how I did it.
VB Code:
crpt.ReportDefinition.Sections(7).SectionFormat.EnableSuppress = True
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|