473,396 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

making a pdf file 'read only' using vb

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
1 1828
Killer42
8,435 Expert 8TB
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

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

Similar topics

6
by: D. Alvarado | last post by:
How do I make an input type="text" field read only for pages meant for display on IE 5+ and Netscape 6+? Thanks - Dave
1
by: Matt | last post by:
I want to open a file (Excel spreadsheet) read-only using JavaScript. Can someone tell me if/how this can be done? Thanks in advance, Matt
3
by: Baldy | last post by:
Hi folks. I have a query opened from a menu bar. Is it possible to make the query read only? Thanks Al
4
by: xenny | last post by:
Hi, I'm trying to see if a file (exportfile) is set to read only using File::GetAttributes: if ((File::GetAttributes(exportfile.c_str()) & FileAttributes::ReadOnly) != 0); {...
2
by: Jason Sobell | last post by:
Hi, I'm trying to figure out a sensible way of making a combobox (configured as a dropdown list) behave in a read-only fashion. Setting Enabled=False will grey the text and the background, but I...
8
by: Karl | last post by:
No, not a cross-post. I posted to the wrong group first up. Hi all, Using Len(Dir$(txtFileName)) to check if a file exists, can anyone suggest an additional step to check the Read-Only...
7
by: rossum | last post by:
Is there any way of creating a read only reference to an array? My class includes a private array of bytes with a Property to access it. However, I do not want users to use the returned reference...
2
by: frank knuckles | last post by:
After exporting an Access table to Excel, I would like to make the Excel file Read-Only. Is it possible to do this with VBA from within Access? Thanks. FK
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.