By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,852 Members | 2,123 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,852 IT Pros & Developers. It's quick & easy.

making a pdf file 'read only' using vb

P: 7
I have code to write the results of an Excel file to pdf. I'd like to make that pdf 'read only' when saving. How do I do that?

Thanks!
Jan 17 '08 #1
Share this Question
Share on Google+
1 Reply


Expert 5K+
P: 8,434
I have code to write the results of an Excel file to pdf. I'd like to make that pdf 'read only' when saving. How do I do that?
You will need to do that after you close it. You can either use the FilesystemObject or for such a simple change, if you're using VB6, use the SetAttr statement. for later versions of VB, I don't know what other capabilities are there.
Jan 18 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.