Click here to Skip to main content
15,860,943 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I am using Crystal Reports for Visual Studio 2010. Using Crystal Reports , I plan to export a file in PDF format. But I want to protect some of these PDF files using a Password. Would it be possible to do so using some C# library. I do not intend to use any third party library like Itext or any thing else? Any sample code would be helpful.

Thanks for your help.
Posted
Comments
thatraja 7-Jun-11 14:50pm    
I agree with Dave, so think about it.

1 solution

Don't want to use a third party library?? Good luck with that!

It would take you approximately 6 months to code up your own library to do it, or you could just get iTextSharp, or some other library, and code up your password solution in about 30 minutes.

Which would like to do?
 
Share this answer
 
Comments
thatraja 7-Jun-11 14:50pm    
Agree, 5!
Hellraiser123 8-Jun-11 11:42am    
I think I would go with iTextSharp :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900