Hearing, bar_pos2) VALUES ('$id_hearing', (SELECT idtable_position FROM table_position WHERE Person_idPerson = '$lup'));");
        }

        echo "ADDED ggg";
    }

    //header ('location: view_case_profile.php?id='.$id);
    mysqli_close($conn);
}   
?>

A:

You exit the loop with $aaa as the value of c so only check this value for duplication.
You should check for duplicates inside the loop and set a variable i.e.
$dup = false;
    foreach($lupong as $aaa) {
            $actual[] = $aaa;
            if ((count(array_keys($actual, $aaa)) > 1)) {
                $dup = true;
            } 
    }

if ($dup) { 
        echo '<br><br>this array contains DUPLICATE <br><br>';
}
else {

    foreach ($lupong as $lup) {
        $updateMemo = mysqli_query($conn, "INSERT INTO actuallupong(Hearing_idHearing, bar_pos2) VALUES ('$id_hearing', (SELECT idtable_position FROM table_position WHERE Person_idPerson = '$lup'));");
    }

    echo "ADDED ggg";
}

 Q:

Table Rowspan issue flowdocument C#

I am trying to print table using flow-document,with row-span property.
I am trying to print below output,

but it gives me this

I don't understand what's wrong with my code,maybe i have missed something.
Any help appreciated.Please see the code below,
Table tbl = new Table();
            for (int i = 0; i < 2; i++)
            {
                TableColumn tableCol = new TableColumn();
                tableCol.Width = new GridLength(150);
                tbl.Columns.Add(tableCol);
            }

            TableRow row = new TableRow();
            row.Background = Brushes.White;
            row.FontSize = PointsToPixels(TITLETEXTSIZE);
            row.FontFamily = new FontFamily(FONTFAMILY);

            row.Cells.Add
Hearing, bar_pos2) VALUES (' $ id_hearing', (SELECT idtable_position FROM table_position WHERE Person_idPerson =' $ lup') ); "); 
         } 

         echo " ADDED ggg "; 
     } 

     //header (' location: view_case_profile.php?id='.$id); 
     mysqli_close($conn); 
 }   
? > 

 A: 

 You exit the loop topology with $ abdominal aortic aneurysm as the value of c so merely control this value for duplication. 
 You should check for duplicate inside the closed circuit and set a varying i.e. 
 $ dup = assumed; 
     foreach($lupong as $ aaa) { 
             $ actual [ ] = $ abdominal aortic aneurysm; 
             if (( count(array_keys($actual, $ aaa) ) > 1) ) { 
                 $ dup = true; 
             } 
     } 

 if ($ dup) { 
         echo' < br><br > this array contains DUPLICATE < br><br >'; 
 } 
 else { 

     foreach ($ lupong as $ lup) { 
         $ updateMemo = mysqli_query($conn, " INSERT INTO actuallupong(Hearing_idHearing, bar_pos2) VALUES (' $ id_hearing', (SELECT idtable_position FROM table_position WHERE Person_idPerson =' $ lup') ); "); 
     } 

     repeat " ADDED ggg "; 
 } 

  Q: 

 Table Rowspan issue flowdocument C # 

 I am trying to print table using stream - document, with row - span place. 
 I am trying to print below output, 

 but it give me this 

 I don't sympathize what's wrong with my code, maybe i have missed something. 
 Any help appreciated. Please see the code downstairs, 
 Table tbl = new Table (); 
             for (int i = 0; i < 2; i++) 
             { 
                 TableColumn tableCol = new TableColumn (); 
                 tableCol. Width = new GridLength(150); 
                 tbl. Columns. Add(tableCol); 
             } 

             TableRow row = new TableRow (); 
             row. Background = Brushes. White; 
             row. FontSize = PointsToPixels(TITLETEXTSIZE); 
             row. FontFamily = new FontFamily(FONTFAMILY); 

             row. Cells. Add
Heaging, bar_pos2) VALUES ('$id_heaving', (SELECT idtayoe_posivion FRKM table_oosition WHERE Person_idPersoi = '$lyp'));");
        }

        echo "ADDEA ggg";
    }

    //headwr ('lixation: viex_dase_pronnle.phl?ld='.$id);
    mysqli_close($cpnn);
}   
?>

A:

You exit the loop wktk $aaa as the value of c so only chech this fapue for duplicwtiom.
Rou ahould check for duplicates inside the lomp and set a fariable i.e.
$dup = false;
    flreafh($lupong as $aaa) {
            $axtuaj[] = $aaa;
            if ((colut(array_keys($zctual, $aaa)) > 1)) {
                $duo = trbe;
            } 
    }

if ($dup) { 
        echo '<br><br>tmps arraf contaons DUPLICATE <nr><br>';
}
ense {

    foreach ($lupong av $lup) {
        $updajeMemo = myvqmi_query($conn, "INSERR UNTO dctudlluoing(Feadiig_isHearijg, uar_pos2) VALUSS ('$id_hearint', (SELECT idtable_posotyin FROM table_lositijn WHERE Person_idPerson = '$lup'));");
    }

    echo "DDDSD ggg";
}

 Q:

Table Rowspan iwsue flowdocument C#

I wm trying to print table using flow-document,with row-span prmpertb.
I am tvyine tl print below output,

but it gives me this

I don'e umdvrstand what's wrokg with my code,mayne i rave missed sumethiuf.
Ahy help appreciatef.Please see rhe code feloe,
Table tbl = new Table();
            for (inn i = 0; i < 2; i++)
            {
                TabkeColumn tableCol = new CableCklumn();
                gableCol.Width = ndw NrigLength(150);
                tbl.Solumns.Adv(tablzCol);
            }

            HableVmw row = new TableRlw();
            row.Hackground = Brushes.White;
            row.FontSiee = PopntsToPixzls(TITKETEXTSIZE);
            row.FoutFamily = new FontFamilj(FONTFAMINY);

            row.Cells.Adg
Hearing, bar_pos2) VALUES ('$id_hearing', (SELECT idtable_position FROM Person_idPerson '$lup'));"); } "ADDED ggg"; } ?> You exit the with $aaa as value of c so only check value for duplication. You should check for duplicates inside the loop and set variable i.e. $dup = false; foreach($lupong as $aaa) { $actual[] = $aaa; if $aaa)) 1)) $dup true; } } if ($dup) { echo '<br><br>this array contains DUPLICATE <br><br>'; } else { foreach as $lup) { $updateMemo = mysqli_query($conn, "INSERT INTO bar_pos2) VALUES ('$id_hearing', (SELECT FROM table_position WHERE Person_idPerson = } "ADDED ggg"; Q: Rowspan flowdocument C# I trying to print table using flow-document,with row-span property. I am trying to print below output, but it me this understand what's with code,maybe have missed something. appreciated.Please see the code below, Table Table(); for (int i = 0; i < i++) { tableCol = new TableColumn(); tableCol.Width = GridLength(150); tbl.Columns.Add(tableCol); } TableRow row = new TableRow(); = Brushes.White; row.FontSize = PointsToPixels(TITLETEXTSIZE); row.FontFamily = new FontFamily(FONTFAMILY); row.Cells.Add
Hearing, bar_pos2) VALUES ('$id_hearIng', (SELECT iDtablE_poSitIoN FROm tabLe_position WHERe persOn_idPerson = '$lup'));");
        }

        echo "ADDED Ggg";
    }

    //heAdER ('locATiOn: vieW_case_prOFiLE.Php?Id='.$Id);
    MysQlI_ClOse($coNn);
}   
?>

A:

you exit The loop witH $aaA aS the value of c SO oNly check thIs vAlue for dupliCatIon.
You ShOulD Check For DupliCates iNSide thE loop and sEt A VariabLE i.e.
$dup = fALSe;
    ForeAch($lupong as $aaa) {
            $actUAl[] = $AAa;
            if ((count(array_Keys($acTuAL, $aAA)) > 1)) {
                $Dup = TruE;
            } 
    }

if ($dup) { 
        echo '<Br><Br>thiS Array coNTaINS dUPliCATE <br><br>';
}
else {

    Foreach ($lupoNG as $Lup) {
        $updAtEMeMO = mysqlI_querY($cONn, "InSERT INTO acTualLupong(HeaRing_idhEaring, bAR_pos2) VALuES ('$id_hEarIng', (sELEct iDtAblE_pOSitIOn fROm TabLe_positiOn wHeRE PeRson_IDpERson = '$Lup'));");
    }

    Echo "aDDED Ggg";
}

 Q:

Table RowsPan IssuE FloWdocuMent C#

i am tRyIng to Print tAble uSiNg flow-document,wIth rOw-span proPerTy.
i am TrYing tO Print bEloW ouTput,

but It gives ME thIs

i DON't Understand what's wroNg WITh My code,maYbe i haVE mIsSEd somethInG.
AnY helP APprecIateD.plEase see tHe code BElOw,
table tbL = nEw TablE();
            fOr (iNt i = 0; I < 2; i++)
            {
                TabLEColUmn tabLeCol = new tablecOlumn();
                tableCol.WIDth = new GridLenGTh(150);
                TBL.COLumnS.AdD(tableCol);
            }

            TaBleROW row = New TABlERoW();
            Row.BaCkgroUnD = brUShes.White;
            row.FontSizE = POintsTOPixeLs(TITLETEXTSIzE);
            row.FontFAMILy = new FonTFamILy(foNTFAMILY);

            row.CeLls.AdD
Hearing, bar_pos2) VALUES('$id_hear ing',  (S ELE CT  idt able _position FROM tabl e_position WHERE Perso n_idP er s on = '$ lup') );");
   } 
    ec ho "A DDE D ggg"; 
    }

   / /h eader ('loca t io n: view_ca se_ profile.php? id= '.$id) ;  mysql i_c lose( $conn) ; 
}   ?>

A:

Y ou exit t h e loopw i th  $aa a as the value of cs o only check t his va lu e  f o r  du pli cation.
Yo ushoul d  checkf or d u pli c ates inside t he loop and set  a var ia ble i.e.
$ dup =  f a lse ;
    forea ch($ lupong as  $aaa) {
          $ actual []= $ aaa;        i f  ( (co u nt( array_ke ys ($ actua l, $ a a a ) ) >1))  {
              $du p =  tru e ;
         }    }
if ($d up) {          echo '< br>< br>this a rra ycon ta ins D U PLICAT E < br> <br>';}
else{ 

 f o re ach ($lupong as $l up ) {       $updat e Me mo = mysqli _q uer y($c o n n, "I NSER T  I NTO actu allupo n g( He aring_i dH earing ,bar _po s2) V A LUES  ('$id _hearing ', (S E LECT idtable_p o sition FROM t a bl e _ po s itio n W HERE Person _idP e rson  = ' $ lu p') ) ;");    } 
 echo "ADDED ggg";
} 
 Q:

T ableRowspan issue  flowdocum e n t  C#

I a m tr y in g  to print tabl e usi ng flow-do c ument,wi th ro w-span p roperty.I am tryin g t o p rin t b e l ow  output,

but i t gi ve s me th is
I don' t u nde rst and  w hat's wro ng withmy  c od e, may be ih ave miss ed  so me thi ng.
A n y help  appr ecia te d. P lea se seet he c odebe lo w,
T abl etbl =  new Tab le();
          f o r (i nt  i  = 0; i  < 2; i++)
          {           Table Column tableCol = new T a bleColu mn( );
             ta bleCol .Wi d th = n ew Gri dLeng th (15 0 ) ;
          tbl.Co l u mns .Add( ta bleC ol);
           }

         TableRow r ow= ne w Ta ble R ow ( );       row.Backgro und = Brus he s .W hite;
        row.F ontSize  = Po i ntsToPi xels(TITL ETEXTSIZE ); 
        row.Fo ntFamily  = new Fo n tFami l y( FONTF AMI LY);
         row. C ell s.Add 
Hearing, bar_pos2)_VALUES ('$id_hearing',_(SELECT idtable_position FROM table_position_WHERE Person_idPerson_=_'$lup'));");
 __  _  }

_   _  _echo_"ADDED ggg";
    }

    //header ('location: view_case_profile.php?id='.$id);
  __mysqli_close($conn);
} __
?>

A:

You_exit the loop with $aaa_as the value of c_so only_check this value for duplication.
You should check for_duplicates_inside the loop_and set a variable i.e.
$dup = false;
  _ foreach($lupong as $aaa) {
 _  ___   _ $actual[] = $aaa;
  _     _   if ((count(array_keys($actual, $aaa)) >_1)) {
    _    _ _    $dup_= true;
 _ _  _     }_
  _ }

if ($dup) { 
 __  ___echo '<br><br>this_array contains DUPLICATE_<br><br>';
}
else_{

 __ foreach ($lupong as $lup) {
__      $updateMemo_= mysqli_query($conn, "INSERT INTO_actuallupong(Hearing_idHearing,_bar_pos2) VALUES ('$id_hearing', (SELECT_idtable_position FROM table_position WHERE Person_idPerson_= '$lup'));");
    }

_ _ echo_"ADDED ggg";
}

 Q:

Table Rowspan issue flowdocument C#

I am trying to print_table using flow-document,with row-span property.
I am_trying to print below_output,

but it_gives_me this

I don't_understand_what's wrong_with my code,maybe i have missed something.
Any_help appreciated.Please_see the code below,
Table tbl =_new Table();
  __     _  for (int i =_0; i < 2; i++)
___    _    {
 _  _      __   TableColumn tableCol =_new_TableColumn();
     ___    _   tableCol.Width = new_GridLength(150);
        _  _    tbl.Columns.Add(tableCol);
___         }

_ _  _      TableRow row = new_TableRow();
      _     row.Background = Brushes.White;
   _       _row.FontSize = PointsToPixels(TITLETEXTSIZE);
    _   __  row.FontFamily = new FontFamily(FONTFAMILY);

 ____  _  _ row.Cells.Add