Writing Code
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Writing Code
Message Icon Topic: Line Colors Post Reply Post New Topic
Author Message
Djavid
Newbie
Newbie
Avatar

Joined: 18 Mar 2008
Location: Netherlands
Online Status: Offline
Posts: 6
Quote Djavid Replybullet Topic: Line Colors
    Posted: 16 Jun 2008 at 12:47pm
Hi All,
 
How can i change the color of a line programmatically???
 
Thanx.
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 16 Jun 2008 at 2:06pm
You can set the LineColor property of the LineObject class.

Get a reference to the object using the ReportDocument class.

(CrystalDecisions.CrystalReports.Engine.LineObject)ReportDocument.ReportDefinition.ReportObjects['line object name'].LineColor = Color.Red;


Replace 'ReportDocument' with your report object name. I have the complete CR.NET object model mapped out in my books. You can find out more about my books at Amazon.com or reading the Crystal Reports eBooks online.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
Post Reply Post New Topic
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



This page was generated in 0.032 seconds.