Question : SSRS Reporting

I have a field =Fields!TelNo1.Value

How do i highlight duplicate phone numbers in my report.

Answer : SSRS Reporting

First you do not need two loops.  Your rectangle should be defined as:

Left:       (i * inc) + x
Top:       y - a[i]
right:      Left + line width
Bottom : Y

So, get rid of the inner loop entirely...  The code I posted should give you an idea of what is needed.  I have never done QT programming.  Let me know if you need more explanation.
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
void line::paintEvent(QPaintEvent *c)
{
    //lines
    QPainter line(this);
    line.setRenderHint(QPainter::Antialiasing,true);
    line.setPen(QPen(Qt::black,2,Qt::SolidLine,Qt::RoundCap,Qt::MiterJoin));
    line.setBrush(QBrush(Qt::black,Qt::SolidPattern));
    line.drawLine(50,50,50,200); // Y axis
    line.drawLine(50,200,250,200);  // x axis

    // rectangle
    int a[5] ={20,60,120,30,200};    //length = a[]
    int x= 50.0  ;
    int y= 200 ;
    int inc = 200/5;

    for(int i=0 ; i<5 ;i++)
    {
        QRectF rect( (x + (i * inc)), (y - a[i]), (x + (i * inc) + 20), Y);
        line.setPen(QPen(Qt::green,8,Qt::SolidLine,Qt::RoundCap,Qt::MiterJoin));
        line.drawRect(rect);
    }

}
Random Solutions  
 
programming4us programming4us