Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Changing file attribute when exporting to word.

Posted on 2004-07-30
4
Medium Priority
?
272 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 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

705 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