How force a document open as Read Only

D

David Neesen

Hi,

I have Word 2003 and we are using a document management system (DM5) and I
am trying to figure out if there is a way using DDE commands to force Word to
open a document as Read Only. At first I was going to try and use command
line switches to do this but I now realize that there is no such switch.

We currently use the following DDE to open a document in Word:
[DDE.DDEOpen(%"1"%)]

This works well but I would like to force the document to be read only.

Any help would be appreciated (or even point me to a good DDE reference page).

Thanks

David Neesen
 
H

Helmut Weber

Hi David,

I don't know much about DDE and nothing
about your docmanagement system.

If other methods fail or are not available,
then I'd make the file read-only before opening it
from the commandline, like

attrib +r test-03.doc



--

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Vista Small Business, Office XP
 
D

David Neesen

Thanks but that might not be feasible with what we are trying to accomplish.
Specifically, we have approximately 400,000 WordPerfect documents and we have
finally finished migrating to Word (we are a law firm for those wondering why
we were still on WP). I have set Word up in the document management system
to open the WordPerfect documents but, because some documents might not
convert correctly, I want to force this to be read only (leaving us at least
2 other methods of converting the document should the native Word conversion
fail).

In other words, the only time I want the document read only is if it is a
WordPerfect Document being opened by Word. This logic is simple to achieve
using the doc management tools...the only piece that is still missing is the
DDE settings to make it Read Only.

Thanks again.

David.
 
J

Julian

Hi David,

I'm big on hazy suggestions today, but If I recall correctly, a better
method might be to use Tasks and the SendWindowMessage method - but as the
help files says you need various wParam and IParam values that you can find
only with the Spy Utility of the Microsoft Platform Software Development
Kit.

Hope that is of non-zero value...

Julian
 
H

Helmut Weber

Hi David,

would making all WordPerfect docs read-only be an option?
If so:

sourcedir> attrib +r *.wpd /s

--

Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Vista Small Business, Office XP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top