Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't encrypt excel's specific sheet using c# #61

Open
sunweiconfidence opened this issue Jul 29, 2021 · 4 comments
Open

Can't encrypt excel's specific sheet using c# #61

sunweiconfidence opened this issue Jul 29, 2021 · 4 comments

Comments

@sunweiconfidence
Copy link

hi,

i use below code to encrypt excel's specific sheet, but not work, for Workbook, i can encrypt successfully:

        string excelFile = Path.Combine(currentDirectory, "test.xlsx");
        string encryptedfile = Path.Combine(currentDirectory, "encryptedtest.xlsx");
        Workbook workbook = new Workbook(excelFile);
        workbook.Worksheets[0].Protect(ProtectionType.All, "1234", "");
        // Save the excel file
        workbook.Save(encryptedfile);

so what should i use to let it work, i use aspost.cells version as below:
Aspose.Cells: 20.11.0
OS: Windows10

@amjad-sahi
Copy link
Collaborator

Could you please share "test.xlsx" and output Excel file here, we will check it soon. Also provide your expected file (you can create the expected encrypted file (containing your expected protected sheet in tact) in MS Excel manually).

Moreover, we have dedicated forums to get support in quick time and we encourage you to post your queries or issue in respective forum.

@sunweiconfidence
Copy link
Author

@amjad-sahi

i can't access https://forum.aspose.com/c/cells/9 site, do you have any suggestion for it? thanks

@aspose-com-kb
Copy link

@sunweiconfidence

Are you not able to access the URL/Website at all or you're unable to create a new post? If the site is not accessible then please check your network/firewall settings because the forums are working pretty fine. To create a new post, you'll have to signup at the forums.

@aspose-com-kb
Copy link

@sunweiconfidence ,

Just an update. We did have a temporary glitch due to SSL issue at our end. However, it's fixed now. Please give it a try again. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants