We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Saving workbook using userid


I am using aspose java cells for saving the workbook on linux box. As a result of security I need to use a user id and password to save the workbook. Please let me know if there is any method in aspose API to save a workbook using user id and password.




Thanks for your posting and using Aspose.Cells for Java.

Well, you can generate different file names randomly or using the user id as per your needs and save the files according with that file name.

You can also encrypt the file and set the password to it using Aspose.Cells API. Please see the following documentation article for your reference.


However my question is more towards saving using Userid. Like an impersonation.

When we have the code WorkBook.save(), this method should be under a specific userID. This is becasue the server has only access to a specific userID. We need to impersonate this ID to save the workbook on server.

Please suggest.


Thanks for your posting and using Aspose.Cells.

We are afraid, you cannot use Workbook.Save method for impersonation. Save method is used to save the workbook in different formats and at the given file path. Please see the following article related to saving the workbook for your reference.