How to make MS Word Mail Merge document read only?

We have an application that uses Visual Basic 6, Sql Server 2000 and MS Word. Essentially we mail merge the data from Sql queries in to a Ms Word document.

The issue we are having is that the final MS Word document is writable and users can overwrite on it.
Is there a way to make the MS Word document read only so that users cannot change the data in the document?

Thanks,
Ricky
Ricky66Asked:
Who is Participating?
 
DotxCommented:
you can set read only checkbox in folder property then all files in this folder will be read-only
0
 
GrahamSkanRetiredCommented:
This code will set protection on:


    wrdDoc.Protect wdAllowOnlyReading, , "password"

Open in new window

0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
Ricky66Author Commented:
Dotx, I tried making the folder read only. With that, I am not able to save the changes but I can still make the changes. I would like to make it much like a pdf document so that users cannot alter the document. Any suggestions?

Graham Skan, I willl give your suggestion a try.

Thanks.



 
0
 
CodeCruiserCommented:
>I would like to make it much like a pdf document so that users cannot alter the document.
That's not possible with Word.
0
 
Ricky66Author Commented:
Thanks!
0
 
Khalid Mehmood AwanCommented:
thanks ;-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.