Skip to main content
Known Participant
Dec 7, 2020 1:04 AM UTC
Question

AVDocOpenFromFile cannot open file under C:/user/localadmin

Dear All,

 

I cannot open file by using AVDocOpenFromFile, if the file is under C:/user/localadmin. But it can open file if I added "Everyone" into the security of directory - localadmin. Anyone has the idea about it?

 

Thanks and best regards,

Tony

 

 

This topic is closed to new replies. Start a new post to keep the conversation going.

8 replies

Legend
Dec 14, 2020 8:29 AM UTC

Is Protected Mode on? 

Translate
li0D4CAuthor
Known Participant
Dec 14, 2020 8:48 AM UTC

In perference -> enabled protectd mode at startup 

Protected view is All files.

off Run in AppContainer.

 

Translate
Legend
Dec 14, 2020 9:15 AM UTC

This sounds as if it is designed behaviour. Most files cannot be opened from code in Protected Mode. Open it first in the UI, then try running the code.

Translate
Legend
Dec 9, 2020 4:00 PM UTC

Can you open it is the UI without changing the security?

Translate
li0D4CAuthor
Known Participant
Dec 14, 2020 7:22 AM UTC

Yes. I can open it if not use AVDocOpenFromFile.

thanks,

tony

Translate