cancel
Showing results for 
Search instead for 
Did you mean: 

Setting Control Properties Dynamically

Former Member
0 Kudos

<div>I am broaching the world of Crystal Reports in VB .Net 2003. I think I have a pretty good idea of how things work with formulas, etc. but I need to be able to set field properties dynamically, such as .Left and .Width.<br /><br />My case is that I want to report timelines, much as a scheduling program. In MS Access I can override a Report&#39;s Detail_Format function and using a rectangle to represent the timeline I could adjust its position, width, color, etc. <br /><br />I don&#39;t know how to do this with Crystal Reports. I have tried looking at the formulas to do something like .Left = x but apparently this is not allowed. In VB code I tried looking for events that I could capture to set .Left and .Width at runtime (for each data record) but no luck. I thought about using a chart but that didn&#39;t seem to provide what I want.<br /><br />So how to do this? Is it possible? Can we build our own custom controls with .Net?<br /><br />Thanks</div>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Tony,

field properties cannot be changed dynamically. This is a limitation.

The only option is to set the 'can grow' property to allow text displayed in full even when longer then the field lenght.

Falk

Answers (0)