//create a new workbook var workbook = new GrapeCity.Documents.Excel.Workbook(); //Change the path to real export path when save. XlsxSaveOptions options = new XlsxSaveOptions { Password = "123456" }; workbook.Save(System.IO.Path.Combine(this.CurrentDirectory, "dest.xlsx"), options);
' Create a new Workbook Dim workbook As New Workbook 'Change the path to real export path when save. Dim options As New XlsxSaveOptions With { .Password = "123456" } workbook.Save(IO.Path.Combine(CurrentDirectory, "dest.xlsx"), options)