Solved

Changing file attribute when exporting to word.

Posted on 2004-07-30
4
269 Views
Last Modified: 2013-12-18
Can you change the attribute of an exported document to Word? I need the saved Word document to be read-only.
Part of the code that displays the generated document and saving.

wordobj.AppShow
wordobj.filesaveas "c:\Work\SMP\" & CNno & ".doc"
Thanks!
0
Comment
Question by:cyle
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 31

Expert Comment

by:qwaletee
ID: 11678155
Look atthe parameters for Word's SaveAs... one of them sets the file to read-only.
0
 
LVL 31

Accepted Solution

by:
qwaletee earned 500 total points
ID: 11678192
SaveAs(FileName, FileFormat, LockComments, Password, AddToRecentFiles, WritePassword, ReadOnlyRecommended, EmbedTrueTypeFonts, SaveNativePictureFormat, SaveFormsData, SaveAsAOCELetter)

ReadOnlyRecommended   Optional Variant. True to have Word suggest read-only status whenever the document is opened.


So, .SaveAs "c:\Work\SMP\" & CNno & ".doc" , , , , , , True
0
 

Author Comment

by:cyle
ID: 11678216
Yes, but the user has to set this. I'd like the user not be able to edit the file that was converted from Notes to Word.
0
 

Author Comment

by:cyle
ID: 11678547
Final code,
                   wordobj.filesaveas "c:\Work\SMP\" & CNno & ".doc"  , , , , , ,True, , , , , True
                   wordobj.fileclose
Thanks!
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
CopyAllItems causing problem with permissions 3 100
Add a cc field to email code 6 105
Lotus Domino Server 9 4 103
xss alert in domino url 9 84
For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question