bjoernautoit Posted October 29, 2008 Share Posted October 29, 2008 Hi all, in my gui i have got a button to open a man: Run(QComSpec & " /c " & 'man\blaman.doc', "", @SW_HIDE) The problem i have is that several people use the gui at the same time... and sometimes they want to open the blaman.doc at the same time... If you open a doc from the network while another person has got access word ask you to open it in write protect mode... But if i hit the button in my gui during somebody has access on the doc nothing happens... Does sombody knows an solution? Link to comment Share on other sites More sharing options...
dbzfanatic Posted October 29, 2008 Share Posted October 29, 2008 Use a database. That supports multi-user editing. Why do you need to open the same doc on different computers at the same time? Perhaps if we know a bit more of your needs we can think of a more helpful solution. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
bjoernautoit Posted October 29, 2008 Author Share Posted October 29, 2008 Use a database. That supports multi-user editing. Why do you need to open the same doc on different computers at the same time? Perhaps if we know a bit more of your needs we can think of a more helpful solution.because the gui is an multiuser admin interface.the easy solution for my problem shoud be if i can use the windows "start/run" aplication...try to open a doc from the commandline on 2 pcsand try to open the same doc in "start/run"... Link to comment Share on other sites More sharing options...
Spiff59 Posted October 29, 2008 Share Posted October 29, 2008 (edited) I have a script or two that opens Word documents, and have no problem with multiple users going after the same document. Once the file is locked for editing by the first user, subsequent users get the "read-only/copy/cancel" prompt. I generally access Word either via COM+ or with something like ShellExecute('winword.exe', '/a /q "' & $WordDoc & '"') Maybe that'll behave differently for you? Edited October 29, 2008 by Spiff59 Link to comment Share on other sites More sharing options...
bjoernautoit Posted October 30, 2008 Author Share Posted October 30, 2008 perfect!!! ShellExecute instead of Run works fine and it is easyer than the run command ShellExecute('man\blaman.doc') thx @ spiff59 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now