Solved

crystal reports unselectable 'Can Grow' option for textbox

Posted on 2010-08-26
9
1,249 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
ID: 33536968
Pardon.  Its a text object and not a text box.
0
 
LVL 100

Expert Comment

by:mlmcc
ID: 33537116
What version of Crystal?

mlmcc
0
 

Author Comment

by:PeterTrefren
ID: 33537212
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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 33537541
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
 

Author Comment

by:PeterTrefren
ID: 33537659
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
ID: 33537731
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
ID: 33537855
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
ID: 33538043
How about changing the field headings into text boxes then you could set the can grow

mlmcc
0
 

Author Closing Comment

by:PeterTrefren
ID: 33543166
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

821 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