Solved

crystal reports unselectable 'Can Grow' option for textbox

Posted on 2010-08-26
9
1,273 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
Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

 
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

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
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…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

830 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