Wednesday, March 21, 2012

Default "can grow" properity

Hi all,

I found that the default "can grow" in Crystal Reports 10 is different from the one in Crystal Report 9.

In version 9, when "can grow" is disable, the words in the field are chopped off and doesn't not warp around to the next line.

In version 10, when "can grow" is disable ,the text would overlap the field next to it if the text is too long, to make it field behave the same as version 9, I have to enable the "can grow" property and set the limit to 1.

I am wondering if I can change the default "can grow" property to behave like version 9, so that I don't have to go to each of the report to change each fields' "can grow" property (that is a nightmare!!).

Wellesi am woring on CRXI i don't have any problem with can grow option.|||Maybe it is just version 10 in Visual Studio's problem.|||I figured out that I can programmatically set the can grow properity, but I can't find the way to set the limit for the can grow properity. Does any expert know how to set the limit?

//myReport is a report object, myField is a field object.
((FieldObject)myReport.ReportDefinition.ReportObjects["myField"]).ObjectFormat.EnableCanGrow = true;

No comments:

Post a Comment