.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Password protection in excel using OWC

Posted By: nishithraj     Posted Date: January 21, 2010    Points:2   Category :ASP.Net
I'm using OWC 11.0 in ASP.NET and C# to create excel file.

I need to protect/unprotect the sheet by a password. Does any one have any idea???

It should be done by C# syntax...

Responses
Author: Rahul             
Posted Date: January 21, 2010     Points: 5   

Hi Nishit,

try like this to provide password in Excel application

WorkbookObject.Password = "YourPassword";
WorkbookObject.SaveAs("spreadsheet.xls");

Author: Lalij Mer             
Posted Date: January 27, 2010     Points: 5   

try this link

http://aspalliance.com/1_Dynamic_Excel_Reports_with_ASP

Please Check my answer if you help....
Thank You...

Lalit.


Post Reply

You must Sign In To post reply
 
 
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery
JavaScript/VBScriptBiztalkWPFPatten/PracticesWCFOthers
www.DotNetSpark.comUnAnsweredAll

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend