Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Regular text + word doc into HTML
Message
From
22/04/2005 11:53:55
 
 
To
22/04/2005 10:59:56
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
01007424
Message ID:
01007496
Views:
15
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform