[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1503
  • Last Modified:

crystal reports unselectable 'Can Grow' option for textbox

I have some reports that have textboxes that I would like to set the 'Can Grow' option to true.  Right now it appears disabled.  These textboxes are column headings that will have the text set programatically.  I'm just wondering what is preventing the option from being selectable.  My application is using Visual Studio .NET to generate the reports.
0
PeterTrefren
Asked:
PeterTrefren
  • 5
  • 4
1 Solution
 
PeterTrefrenAuthor Commented:
Pardon.  Its a text object and not a text box.
0
 
mlmccCommented:
What version of Crystal?

mlmcc
0
 
PeterTrefrenAuthor Commented:
This is the one that comes with Visual Studio 2005.  It almost appears as though the text objects that you get for column headers when you place fields on the report work differently then the ones that you get when you insert them manually.  I can set change the 'Can Grow' property for the report title.  I've checked several times and both are supposed to be the same kind of text object.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
mlmccCommented:
It is the same in the full versions.  Since i generally don't like using the field names as the titles, I have turned the option of inserting the field header off so I hadn't seen that.

Crystal actually calls the one a field header and the other is a field so Crystal does consider them different.

I don't see an obvious way to turn it on.  Perhaps that is because you know how big it is when you design the report and can change the size appropriately especially since the text is static you can set the size during design.

Are you doing something that makes the heading change size?

mlmcc
0
 
PeterTrefrenAuthor Commented:
I don't know of anything I would be doing to change the heading size in a way that would effect the ability to set the property.  On the surface the headings appear to be equivalent as standard text objects.  It looks like I'll have to go through and add new text objects to accomodate the potetially larger heading sizes.  My reason for doing this is that I'm trying to use the same set of reports for three different languages (english, spanish, and potuguese).  Since the application has about 20 reports, I wanted to be able to avoid having to have a seperate report for each language and end up with 60. I wanted to be able to set the 'Can Grow' option just in case a column heading was too long in one language and it would be difficult to widen the column width.
0
 
mlmccCommented:
Since the field heading is set at design time how would the text be changed when you move the report or change the language?  I don't work with multiple languages do the field headings change to reflect the new language?

mlmcc
0
 
PeterTrefrenAuthor Commented:
You just set the object name property and then when you want to change the text you just implement something like:

            myTextObject = rpt.ReportDefinition.ReportObjects.Item("txtGroupName")
            myTextObject.Text = dic.Item("GroupName")

I create multiple dictionaries and then when the language is assigned I set the generic dictionary to the language specific one.  Using a genric dictionary avoids a lot of case statements as well as I'm always working with the keys in English regardless of the language used in the report.  This makes things more compact and readable.
0
 
mlmccCommented:
How about changing the field headings into text boxes then you could set the can grow

mlmcc
0
 
PeterTrefrenAuthor Commented:
Since these are two different items, I will have to replace all of my current headers with text objects to get the 'Can Grow' option.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now