Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Make Word visible
Message
De
02/10/2011 23:12:40
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Versions des environnements
Visual FoxPro:
VFP 5
OS:
Windows 7
Divers
Thread ID:
01525400
Message ID:
01525425
Vues:
30
>>>From Russian forum foxclub.ru
>>>
>>>#DEFINE wdWindowStateMinimize 2 
>>>#DEFINE wdWindowStateMaximize 1 
>>>
>>>loWord.WindowState = wdWindowStateMinimize 
>>>loWord.WindowState = wdWindowStateMaximize && this automatically makes the window activated
>>
>>It worked! Thanks.
>>
>>NOW:
>>
>>1. How do I disable the user from X'ing out of the main Word window? She can X out of the document, but not Word.
>>
>
>As I recall, this is not easy - you may need to hook up to Word Events. There were threads on this topic in the past, I think.
>
>>2. When trying to automate Excel I get the dreaded 'Microsoft VFP has stopped working' message:
>>
>>
>>	loExcel = createobject("Excel.application")
>>	loDoc = loExcel.Workbooks.add()  &&<-- Here's where I get the message
>>	loExcel.ActiveWorkbook.saveas(MyFile)
>>	loExcel.ActiveWorkbook.close()
>>
>
>Not sure why you got an error. Do you always get it?

Always with Excel. I think it is a networking issue with that machine.

I will ask my other question on a different thread.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform