Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Office Automation?
Message
De
17/11/2003 06:40:39
 
 
À
16/11/2003 17:43:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00850499
Message ID:
00850579
Vues:
13
Hi Jeff.

Is there a way to do the reverse, say I have a word document with a table of names and address. How could I move the data from this word table to a VFP table?

I just did a little testing from the command window, and it seems like it shouldn't be too hard. This works:
oDoc = GETOBJECT( 'D:\OFFICEXP\DOCUMENTS\MGA.DOC' )
oTable = oDoc.Tables( 1 )
lnRows = oTable.Rows.Count
lnCols = oTable.Columns.count
FOR lnI = 1 TO lnRows
  FOR lnJ = 1 TO lnCols
    ?otable.Cell( lnI, lnJ).Range.Text
  ENDFOR
ENDFOR
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform