DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Access to Cells in Report 2DTable

Solved!
Go to solution

Hello,

 

I am trying to change properties of individual cells in a report based on content is this possible? 

 

For example I am trying to highlight values red that do not fall within a specified parameter.

 

I know that I able to access the font color of the entire column but I am trying to access the individual cell in the column

 

Is this possible?

 

I am using DIADem 2012 SP1

Tim
0 Kudos
Message 1 of 3
(5,806 Views)

Hello Tim,

 

Yes that is possible. You need a user command which handles the color settings depending on the limits of channel values. This command is called in the table format settings and contains the variable CFV (current format value) as parameter. Please have a look at the attached example.

 

Greetings

Walter

0 Kudos
Message 2 of 3
(5,794 Views)
Solution
Accepted by topic author smoothdurban

Looks good.  I used the OnDrawingCell which I found in the examples.  It seems to work well.

Set Table = Report.ActiveSheet.Objects("2DTable1") 

  For i = 1 to 9
    Set Column(i) = Table.Columns.Item(i)
        Column(i).Settings.OnDrawingCell = transferCaseType
  Next
  
 Call Report.Refresh()

 

Tim
0 Kudos
Message 3 of 3
(5,744 Views)