//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("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("dest.xlsx", options)