ajeh
ajeh

Reputation: 2784

How to find out tablix width to set chart's DynamicWidth equal to matrix's width?

The requirements call for placing a chart above the matrix and them having the same width. Depending on how many years the user wants to report/chart, the number of columns and width of the matrix will change. How can I query the width of the matrix tablix to set chart's DynamicWidth to that value?

Upvotes: 1

Views: 738

Answers (1)

BClaydon
BClaydon

Reputation: 1970

I would put the chart in the tablix and format the tablix with the correct spacing, etc., to have the layout you want. I'll always have the same response - everything should be in a tablix. This then locks the chart size to the tablix size.

EDIT: That being said, I'm pretty sure functionality to get something like: Tablix.size.width property at runtime doesn't exist.

When you consume the report programmatically the datasets in XML don't make sense if everything is in a floating text box. For instance, when you call the report from C# and try to parse datasets, you're going to have a bad time.

Upvotes: 0

Related Questions