Solved

crystal reports unselectable 'Can Grow' option for textbox

Posted on 2010-08-26
9
1,327 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 

Author Comment

by:PeterTrefren
ID: 33536968
Pardon.  Its a text object and not a text box.
0
 
LVL 101

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
Independent Software Vendors: 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!

 
LVL 101

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 101

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 101

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

707 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