Workbook.RemovePersonalInformation
Workbook.RemovePersonalInformation method
Removes personal information.
public void RemovePersonalInformation()
Examples
// Called: wb.RemovePersonalInformation();
public void Workbook_Method_RemovePersonalInformation()
{
Workbook wb = new Workbook(Constants.sourcePath + "example.xlsx");
Assert.IsTrue(wb.Settings.RemovePersonalInformation);
wb.RemovePersonalInformation();
// Save the Excel file.
wb.Save(Constants.destPath + "example.xlsx", SaveFormat.Xlsx);
wb = new Workbook(Constants.destPath + "example.xlsx");
Assert.IsTrue(wb.Worksheets[0].Comments[1].Note.Contains("Author"));
}
See Also
- class Workbook
- namespace Aspose.Cells
- assembly Aspose.Cells