SSRS: can grow / can shrink

Epicor 10.2.200

Trying to figure out how to make the Can grow / Can shrink properties actually DO their intended actions.

We have a custom version of the quote form that has the line description field inside Rectangle17. Same location as on the SSRS default version. So the value of txtLineDesc’s Parent property is Rectangle17.

Our line descriptions vary from 1 to 3 lines. We would like the space this field occupies to be as big as necessary, but no bigger. We have tried making the field size bigger and setting the Can Shrink property to TRUE; we have tried making the field size smaller and setting the Can Grow property to TRUE. Neither seems to work.

Is there something we are missing? I did not see Can Grow or Can Shrink properties on Rectangle17; is there some thing else that would affect the field properties?

Thanks.

—sam khayatt

From my experience, the CanShrink doesn’t do anything.

As far as CanGrow, make sure each parent element is also set. In your example, there’s the textbox, the rectangle it is in, and the tablix row containing the rectangle.

1 Like

FTR …

CanShrink does not work with RDLC when the textbox is within a data control like Table / Matrix

But when you place the textbox within a data control like TABLE / MATRIX, the CanShrink property is never honored. At the same time the CanGrow property will always work as expected.

Thanks for the ideas.

Could not find a Can Grow property on either Rectangle17 or Tablix1 (parent of Rectangle17).

Also could not find a way to isolate just that row of the tablix.

And… looked for (but could not find) a “wrap text” property, so that data would flow to the next line.

The right-click Properties menu options seem to be tied to the ones in View | Properties pane, so the checking the “Allow height to increase” checkbox sets the “Can Grow” property to TRUE.

Any other thoughts?

Thanks for the reference. Now will work on the Can Grow…

Right click on the column you would like to Increase or Decrease. Select Properties. On the General tab:

1 Like

Thanks. Did that, but it does not seem to work. Those sizing options are available for the textbox, but not for the rectangle or the tablix.

If you’d like a field to grow bigger than the rectangle place the column under the rectangle and set the textbox CanGrow = True.

When the textbox is inside the rectangle, and when the textbox property CanGrow = TRUE then the textbox and its rectangle both grow vertically downward to accommodate large amounts of text.

Pretty cool, huh?

What you are describing is what I expected to see (and exactly what I want to happen), but it’s not happening. So I am trying to figure out what else might be constraining the size of the textbox.

The textbox is in the rectangle and the textbox’s Can Grow property is set to TRUE.

Rows of a tablix can be constricted too.

Select the row, then look for CanGrow in the properties pane.

EDIT

Correction. That property doesn’t really pertain to the row, but as a way to set all the objects in that row. Setting the Row’s CanGrow to FALSE, sets all the cell’s CanGrow property (in that row) to FALSE.

Haven’t tested what a texbox in a rectangle in a tablix cell does …

1 Like

One more thing to be aware of… Overlapping Textboxes are a bad idea. When the report is rendered, it may try to shove them around to maintain what it thinks are lines made up of multiple textboxes within a rectangle

Thanks. When click in the left margin (or whatever is selected in your image), I get Rectangle 17, not the row of the tablix. The rectangle has a non-editable Location property of 0,0, so I don’t know how to get around it to the underlying tablix.

“Can grow” on all the fields in the rectangle would be fine. The description would be the only thing to have enough content to grow.

Did adjust the field slightly so there is no overlap, but still no multi-line description:

You said it was a modification of a built-in report? What report is it, and I’ll try on my end…

QuotForm. I didn’t do the mod - someone else did. I am just trying to help the users.

Can send you the .rdl if you like.

If you increase that row’s height, does the Calc_LineDesc textbox grow?

If you increase that textbox’s height, does the extra text show ?

1 Like

OK, I am an idiot. The version I was updating was not the one that was being pulled into Epicor. I tested the export, just to ensure that what I thought I was loading was correct. And… the dates didn’t match when I exported back down. Epcior was looking in a different folder.

Can grow does work as it’s supposed to. And I have some directory clean-up to do… Sigh.

I am so sorry for taking up your time.

1 Like

No problem. I actually learned some new things …

FWIW - When testing changes to SSRS reports I’ll often change the background color of the row I’m working on (like make it cyan), just to be sure its the one I think it is. If you had done that, then you would have realized that the changes weren’t to the one you were previewing.

Thanks. Good idea.