Réponse 2 : Récupérer les données d'un tableau Html
le 12 Aoû 2004 17:21
Bonjour Glenux,
J'ai copier à la suite de ce msg le coprs du fichier,que je souhaite exporter vers Excel, car l'ajout de pièce jointe, de ce site, refuse les .htm, .html, .txt, et même les fichiers sans extention.
L'exportation ne concerne qu'une page çà la fois, il y aura un bouton pour chaque page concernée.
Fichier :
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>ProductsDetailStock</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY>
<TABLE id=Tbl_Body cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR id=Row_Header_StockProps>
<TD vAlign=top width="100%"><!-- Begin Header -->
<TABLE id=Tbl_Header cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR id=Row><TD class=blue vAlign=top align=left colSpan=6><B>Détail
stock </B> </TD></TR>
<TABLE id=Tbl_InfoBase cellSpacing=0 cellPadding=0 width=600>
<TBODY>
<TR id=Row_FicheArticle>
<TH class=jaune vAlign=top align=left colSpan=6> </TH></TR>
<TR class=blue id=Row_EnteteInfoBase>
<TD class=blue vAlign=top colSpan=4> </TD>
<TD class=blue id=BPN vAlign=top noWrap align=right><B>Basic PN = </B></TD>
<TD class=blue vAlign=top align=middle><A class=bluelink
href="http://www.monSite.com/Test.htm">822-1293-002</A></TD></TR>
<TR id=Row_FicheArticle1>
<TH class=listingsFicheArticle1 vAlign=top align=left>Code article
: </TH>
<TD class=listingsFicheArticle1 vAlign=top noWrap align=middle
colSpan=2>822-1293-002 </TD>
<TH class=listingsFicheArticle1 vAlign=top align=left>Désignation :
</TH>
<TD class=listingsFicheArticle1 vAlign=top align=middle
colSpan=2>TRANSMITTER RECEIVER TTR921 </TD></TR></TBODY></TABLE><!-- Fin Fiche Article --><!-- Début InfoStock -->
<TABLE class=listings id=Table_InfoStock cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD vAlign=top colSpan=11> </TD><!-- </TR> -->
<TR id=Row_InfostockEntete>
<TR id=Row_StockSpace1>
<TD vAlign=top colSpan=11> </TD></TR>
<TR id=Row_StockWarehouseEntete CellSpacing="0" CellPadding="0">
<TH class=listings vAlign=top align=left><B>Dépôt </B></TH>
<TH class=listings vAlign=top align=left>Stock </TH>
<TH class=listings vAlign=top align=left>Réservé </TH>
<TH class=listings vAlign=top align=left>Net <BR>affect. </TH>
<TH class=listings vAlign=top align=left>En Cde </TH>
<TH class=listings vAlign=top align=left>Point Cde </TH>
<TH class=listings vAlign=top align=left>Stk. de <BR>Sécurité </TH>
<TH class=listings vAlign=top align=left colSpan=2>Fnr P. </TH>
<TH class=listings vAlign=top align=left>Resp. </TH>
<TR id=Row_StockWarehouseDetail>
<TD class=listings vAlign=top align=left><ACRONYM
title="TAT INDUSTRIES DINARD">120 </ACRONYM></TD>
<TD class=listings vAlign=top align=left>4 </TD>
<TD class=listings vAlign=top align=left>5 </TD>
<TD class=listings vAlign=top align=left>0 </TD>
<TD class=listings vAlign=top align=left>2 </TD>
<TD class=listings vAlign=top align=left>0 </TD>
<TD class=listings vAlign=top align=left>0 </TD>
<TD class=listings vAlign=top align=left colSpan=2>999999 </TD>
<TD class=listings vAlign=top align=left>DUQUESNE </TD>
<TD class=listings vAlign=top align=left> </TD>
<TD class=listings vAlign=top align=left> </TD></TR>
<TR id=Row_StockWarehouseEntete1>
<TH class=newstyle vAlign=top align=left><B>N. Série </B></TH>
<TH class=newstyle vAlign=top align=left>Affectable<BR>0=Non<BR>1=Oui </TH>
<TH class=newstyle vAlign=top align=left>Stock </TH>
<TH class=newstyle vAlign=top align=left>Qté <BR>affectée </TH>
<TH class=newstyle vAlign=top align=left>Net <BR>Affectable </TH>
<TH class=newstyle vAlign=top align=left>Crée le </TH>
<TH class=newstyle vAlign=top align=left>Type <BR>Empl </TH>
<TH class=newstyle vAlign=top align=left>Empl. </TH>
<TH class=newstyle vAlign=top noWrap align=left>1=CQ en
cours<BR>2=approuvé <BR>3=rejeté </TH>
<TH class=newstyle vAlign=top align=left>Etat Eqt </TH>
<TH class=newstyle vAlign=top align=left colSpan=2>Propriét. </TH></TR>
<TR id=Row_StockWarehouseDetail1>
<TD class=listings vAlign=top align=left> </TD>
<TD class=listings vAlign=top align=middle>0 </TD>
<TD class=listings vAlign=top align=left>1 </TD>
<TD class=listings vAlign=top align=left>0 </TD>
<TD class=listings vAlign=top align=left>0 </TD>
<TD class=listings vAlign=top align=left>06/05/2004 </TD>
<TD class=listings vAlign=top align=left>PI </TD>
<TD class=listings vAlign=top align=left>ATT.RECEP </TD>
<TD class=listings vAlign=top align=left>1 </TD>
<TD class=listings vAlign=top align=left> </TD>
<TD class=listings vAlign=top align=left colSpan=2> </TD></TR>
<TR id=Row_StockWarehouseDetail1>
<TD class=listings vAlign=top align=left>ACH001 </TD>
<TD class=listings vAlign=top align=middle>0 </TD>
<TD class=listings vAlign=top align=left>1 </TD>
<TD class=listings vAlign=top align=left>0 </TD>
<TD class=listings vAlign=top align=left>0 </TD>
<TD class=listings vAlign=top align=left>28/04/2004 </TD>
<TD class=listings vAlign=top align=left>PI </TD>
<TD class=listings vAlign=top align=left>ATT.RECEP </TD>
<TD class=listings vAlign=top align=left>1 </TD>
<TD class=listings vAlign=top align=left>80 </TD>
<TD class=listings vAlign=top align=left colSpan=2> </TD></TR>
<TR id=Row_StockWarehouseDetail1>
<TD class=listings vAlign=top align=left>ALP180504B </TD>
<TD class=listings vAlign=top align=middle>0 </TD>
<TD class=listings vAlign=top align=left>1 </TD>
<TD class=listings vAlign=top align=left>0 </TD>
<TD class=listings vAlign=top align=left>0 </TD>
<TD class=listings vAlign=top align=left>18/05/2004 </TD>
<TD class=listings vAlign=top align=left>ST </TD>
<TD class=listings vAlign=top align=left>101639 </TD>
<TD class=listings vAlign=top align=left>3 </TD>
<TD class=listings vAlign=top align=left>80 </TD>
<TD class=listings vAlign=top align=left colSpan=2>0000282 </TD></TR>
<TR id=Row_StockWarehouseDetail1>
<TD class=listings vAlign=top align=left>ALP180504C </TD>
<TD class=listings vAlign=top align=middle>0 </TD>
<TD class=listings vAlign=top align=left>1 </TD>
<TD class=listings vAlign=top align=left>0 </TD>
<TD class=listings vAlign=top align=left>0 </TD>
<TD class=listings vAlign=top align=left>18/05/2004 </TD>
<TD class=listings vAlign=top align=left>ST </TD>
<TD class=listings vAlign=top align=left>101639 </TD>
<TD class=listings vAlign=top align=left>3 </TD>
<TD class=listings vAlign=top align=left>99 </TD>
<TD class=listings vAlign=top align=left colSpan=2>0000282 </TD></TR>
</TBODY></TABLE><!-- End Content -->
</TD></TR></TABLE></BODY></HTML>