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 June 16th, 2006, 11:27 AM
Authorized User
 
Join Date: Jun 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default Suppress a text on Page Header

Hi,

We have a scenario:

In page header, we have a text field PST name which should only appear when country is Canada and PST amount appears in detail section along with other fields.

But for country equal to "USA", PST name and PST amount should not appear on header and detail section of report, but other fields appear

If any body has done this before, please let me know

 
Old June 19th, 2006, 06:26 AM
Authorized User
 
Join Date: Jan 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi.
Just R-Click the Text Field -> Select the Properties
You will find few properties besides checkbox like supress ,,,,,,
beside suppress there will be a Formula-box ,if u click that box u will get a new window there u can write all ur Coding, Criteria's and so on... there r two coding Syntax(or techniques) first is crytal syntax ... second is basic syntax. if u select basic syntax u can write any vb-code.
hope u can get it now.
takecare
bye


Mohammed Raza Ullah Khan
 
Old June 19th, 2006, 10:18 AM
Authorized User
 
Join Date: Jun 2006
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
AS the given way, will n't work because we have to change the page header values depending on the detail section.

If any body knows, let me know

 
Old June 23rd, 2006, 01:42 AM
Friend of Wrox
 
Join Date: Dec 2004
Posts: 221
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,

As of my knowlegde.

you can use Formula fields (custom) and in that check with If coidition, if the
contry = usa make the column visible false in the detailed section. just use
the property page of that field in the detailed section, and condition for
visibility.

And don the same in the page header, and make only visible true when the condition
is matched.

I used and came across this scanerio in one of my report. and i have done the
same what you had. BUt only thing is I used CR8.5

Hope this helps.

With Regards,
Raghavendra Mudugal





Similar Threads
Thread Thread Starter Forum Replies Last Post
Runtime Column Header Text vinod_yadav1919 BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 November 29th, 2008 01:53 AM
Text File Header rohan.c Intro Programming 0 August 19th, 2007 04:19 PM
Page Header Printing on Last Empty Page ritag Access 4 November 11th, 2004 12:07 PM
suppress Page footer in some pages cankalu Crystal Reports 1 June 4th, 2004 10:15 AM
header text in datagrid msrnivas .NET Web Services 1 March 4th, 2004 01:56 PM





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