Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Regular text + word doc into HTML
Message
De
22/04/2005 11:53:55
 
 
À
22/04/2005 10:59:56
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01007424
Message ID:
01007496
Vues:
17
>Word keeps flashing in the background in spite the oword.visible = .f.
>Is there anything I can do abou that?

Hmm. I'm not sure why that is happening. I just tried a quick Doc open/close loop here for 5 documents, and did not notice any flashing. Maybe it's dependent on how you opened Word (GETOBJECT vs. CREATEOBJECT) and whether Word was already open in another process.
lcDir = "\\myMachine\docs\"
ww = createobject('Word.Application')
lnFiles = ADIR(laFiles, lcDir + "*.doc")
FOR ii = 1 TO MIN(5, lnFiles)
  ww.visible = .f.
  ? laFiles[m.ii, 1]
  doc = ww.Documents.Open(lcDir + laFiles[m.ii, 1])
  doc.Close
ENDFOR
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform