Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem Accessing Local File in IE 9
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01530020
Message ID:
01530093
Vues:
51
Hi Naomi,

Thanks for the info..Found that turning off Protected Mode for Websites in IE9 allows acesss to Local Files.

See that Protected Mode is turned off for Local Intranet

Is there any way I turn off Protected Mode for a Local Folder or a way that tells IE that the file is Local?


>Check this post Re: Rescue me... Thread #1495009 Message #1495016
>
>I remember Viv having somewhat similar problem, so I just went to his VFP messages and searched for this one.
>
>
>>>>Have some simple code which opens an HTML file and grabs the Document.DocumentElement.innerText:
>>>>
>>>>oIE = CREATEOBJECT("InternetExplorer.Application")
>>>>oIE.Navigate(Somefile.htm)
>>>>cText = oIE.Document.DocumentElement.innerText
>>>>
>>>>When running this code in Windows7 64 Bit (IE 9) and selecting a Local File, I get an Error message that "Document is not an object".
>>>>
>>>>This code works correctly if the File is on the Web or on a Network Drive. There is no problem in Windows XP running IE 8.
>>>>
>>>>Does a Setting in IE 9 have to be tweaked to make this work properly?
>>>
>>>Is file in question on the local drive or on the Network?
>>
>>Hi Sergey,
>>
>>The problem occurs if selecting a Local File (even if the User has Read/Write Privileges to the folder)..No problem with Network or Web Files...The Application (in this case VFP) has to be run as an Administrator (not practical for end-users) for this to work..Apparently Microsoft is afraid of local HTML files being changed via Automation...Any suggestions?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform