Solved

crystal reports unselectable 'Can Grow' option for textbox

Posted on 2010-08-26
9
1,192 Views
Last Modified: 2013-11-27
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
Comment
Question by:PeterTrefren
  • 5
  • 4
9 Comments
 

Author Comment

by:PeterTrefren
Comment Utility
Pardon.  Its a text object and not a text box.
0
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
What version of Crystal?

mlmcc
0
 

Author Comment

by:PeterTrefren
Comment Utility
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
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
Comment Utility
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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:PeterTrefren
Comment Utility
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
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
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
 

Author Comment

by:PeterTrefren
Comment Utility
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
 
LVL 100

Expert Comment

by:mlmcc
Comment Utility
How about changing the field headings into text boxes then you could set the can grow

mlmcc
0
 

Author Closing Comment

by:PeterTrefren
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now