Hi
I have a report that contains an Table
table.ApplyPattern(tablePattern);
table.Width = new RelativeWidth(100);
The table contains cells which are defined width RelativeWidth.
cell.Width = new RelativeWidth(100/numOfColumns)
I store all the cells of the table for later use.
Later on in my code I need to access a cell and get its actual width because I want to create an image that matches the cells size
How do I know what the actual width of a cell is .
Thanks.
Hi,
I don't beleive there is any way to determine the actual width. The actual width is not determined until the report is published.
Hi Mike
But if my page has a certain width then the cells have a certain with as well which can be calculated.
In anycase even if calculated relative width is not trivial - why doesnt FixedWidth have a property to retrieve the width value it was initialized with ?
Thanks for the reply
Mike Saltzman"] I suppose in theory that's true. But there is no reason for the Documents engine to calculate that width into publish time. So there's no exposed method that will return it to you. You could try to just divide the PageSize width and figure it out yourself, but I'm not sure if there are other factors involved or exactly what the math would be.
I suppose in theory that's true. But there is no reason for the Documents engine to calculate that width into publish time. So there's no exposed method that will return it to you. You could try to just divide the PageSize width and figure it out yourself, but I'm not sure if there are other factors involved or exactly what the math would be.
Mike Saltzman"] It does: fixedWidth.Value
It does: fixedWidth.Value
Ryanh said:But if my page has a certain width then the cells have a certain with as well which can be calculated.
Ryanh said:In anycase even if calculated relative width is not trivial - why doesnt FixedWidth have a property to retrieve the width value it was initialized with ?