Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > Crystal Reports
|
Crystal Reports General discussion about Crystal Reports. For discussions specific to the book Professional Crystal Reports for VS.NET, please see the book discussion forum for that book.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Crystal Reports section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 1st, 2004, 03:47 AM
Authorized User
 
Join Date: Sep 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to Hide fields in CR.NET

HI all,

 got another question I have a crystal report in VB.NET and it displays an address of a customer line by line but not all of the customers have all of the lines filled with data therefore it somtimes look like this

Name : Microsoft
Address 1 : 11 Silicon Valley
Address 2 :
Town : LA
Country : USA

my question is how can I hide a field from CR if there is nothing in it so the gap does not appear on the report

 
Old October 1st, 2004, 04:07 AM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to gokul_blr Send a message via Yahoo to gokul_blr
Default

What you can do is to conditionally suppress the field:
Right-click the field, click 'Format Field...' and select the 'Common' tab.
To the right of 'Suppress' you'll find a formula box. Click it and use a
formula like: {Table.Cust_RTyp} = 1, Report Type 0 - To print all & 1 - only for name and city (supress Addr.)

Gokulan Ethiraj
 
Old October 1st, 2004, 04:29 AM
Authorized User
 
Join Date: Sep 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry but I dont know much about formulas and I do not understand what is the formula you have writen here means






Similar Threads
Thread Thread Starter Forum Replies Last Post
How to group by two Fields in CR.NET pajer Crystal Reports 2 October 14th, 2004 05:29 AM
italics in CR.NET pajer Crystal Reports 2 October 14th, 2004 05:26 AM
Dynamic images from VB .net to CR .net. Given Path Alita Crystal Reports 0 September 22nd, 2004 01:51 AM
can anybody help me in using unbound fields in CR prasan BOOK: Professional Crystal Reports for VS.NET 0 July 20th, 2004 12:41 AM
don't hide null fields in XML bmains SQL Server 2000 1 March 9th, 2004 04:42 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.