Building Matrix Report
Hello,
I am trying to build programmatically matrix report and having this problem: After setting MatrixHeaderDescriptors and MatrixCellDescriptor I build the template. After that I am trying to format the cells and unable to format some of them. These cells are: Row Header, Column Header end Title cell where I neeed to change the Fill color and text. Also, if I have more than one MatrixCellDescriptor, I need to be able to access the cells where the name of the bound fields are displayed on every row, and format these cells also. I know I can reference these cells through matrix[col,row], but this is very undesirable, because the report can have different number of datafields bound to rows and cells, and it also can have different combination of total fieldls, so setting them one by one would be a difficult task. Is there a way to get to these cells the same way I can get to the Total cells through TemplateTotalCell property?
Thank you in advance,
Alex.
I am trying to build programmatically matrix report and having this problem: After setting MatrixHeaderDescriptors and MatrixCellDescriptor I build the template. After that I am trying to format the cells and unable to format some of them. These cells are: Row Header, Column Header end Title cell where I neeed to change the Fill color and text. Also, if I have more than one MatrixCellDescriptor, I need to be able to access the cells where the name of the bound fields are displayed on every row, and format these cells also. I know I can reference these cells through matrix[col,row], but this is very undesirable, because the report can have different number of datafields bound to rows and cells, and it also can have different combination of total fieldls, so setting them one by one would be a difficult task. Is there a way to get to these cells the same way I can get to the Total cells through TemplateTotalCell property?
Thank you in advance,
Alex.
Comments
There is no easy way to access these cells. You should calculate the row/column index and access the cell directly via matrix[col,row].