Wrox Programmer Forums
|
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 11th, 2004, 05:58 AM
Authorized User
 
Join Date: Sep 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default italics in CR.NET

Hi all,

 I have a field in the database that could be 1 or 0 it specifies
 If another field from the database displayed on the Crystal Report
 is to be in italics...

Does anybody know how can I implement this into my report?

 
Old October 12th, 2004, 03:44 PM
Authorized User
 
Join Date: Oct 2004
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sounds to me like this would be totally contained in conditional formatting in the report.

In your report editor, select the field to be italicized, and do a right click on it. Go to "format" and select the "font" tab. On the line for Font Style, select the box on the right hand side that has the "x+2" icon displayed on it. This will bring up your form editor.

In your editor, use code similar to this:

if field=1 then crItalic else crRegular

Whenever your report runs, it will check the field value (which doesn't even need to be displayed on the report) and set you style based upon the value.




 
Old October 14th, 2004, 05:26 AM
Authorized User
 
Join Date: Sep 2004
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank that worked






Similar Threads
Thread Thread Starter Forum Replies Last Post
CR.NET NOT DISPLAYING IMAGE yuange_aaron Crystal Reports 6 October 15th, 2008 06:29 AM
How to group by two Fields in CR.NET pajer Crystal Reports 2 October 14th, 2004 05:29 AM
Dynamic images from VB .net to CR .net. Given Path Alita Crystal Reports 0 September 22nd, 2004 01:51 AM
CR.Net and Stored Procedures eman2a Crystal Reports 1 September 2nd, 2004 11:32 PM
Accessing a CR from VB.NET dimondwoof Crystal Reports 1 June 24th, 2003 10:27 AM





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