Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Christian Tabligan
  Where is Christian Tabligan?
 Bacolod City, Neg. Occ.
 Philippines
 Christian Tabligan
 To: Ilya Rabyy
  Where is Ilya Rabyy?
 Fountain Valley
 California - United States
 Ilya Rabyy
 Tags
Subject: RE: Open mode based on user's rights
Thread ID: 228443 Message ID: 228586 # Views: 2 # Ratings: 0
Version: Visual FoxPro 9 Category: Security and Application Protection
Date: Wednesday, May 20, 2009 4:18:16 AM         
   


> Colleagues,
>
> what can I use to open a file (say, XLS or DOC) in Read-Only mode? The matter is that, sometimes, depending on the user's access level, I need to allow an end user to only view DOC or XLS file, but not modify it.
>
> NavigateTo() has no such parameter as lReadWrite flag, neither does ShellExecute().
>
> Neither can I change the file's access' attribute on the run (our end users are of Restricted type).
>
> Any ideas/solutions are welcome.
>
> TIA!
>
> Regards,
>
> Ilya

print it on pdf format or change the attributes of the file.

http://www.tek-tips.com/faqs.cfm?fid=3327

or... open excel file using ODBC. Just from the top of my head. :-)

Best Regards,

CriZ (,")

"Happiness is real when shared."

ENTIRE THREAD

Open mode based on user's rights Posted by Ilya Rabyy @ 5/19/2009 12:45:56 AM
RE: Open mode based on user's rights Posted by M. Akram Bhatti @ 5/19/2009 7:00:18 AM
RE: Open mode based on user's rights Posted by Ilya Rabyy @ 5/19/2009 9:09:19 PM
RE: Open mode based on user's rights Posted by Christian Tabligan @ 5/20/2009 4:18:16 AM