Skip to content

Commit 822e582

Browse files
988804-ModifyStreams
1 parent d2011a0 commit 822e582

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Document-Processing/Excel/Excel-Library/NET/Working-with-Data-Validation.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,7 @@ using (ExcelEngine excelEngine = new ExcelEngine())
337337
validation.PromptBoxText = "Custom DataValidation";
338338
validation.ShowPromptBox = true;
339339

340-
FileStream file = new FileStream("DataValidation.xlsx", FileMode.Create, FileAccess.ReadWrite);
341-
workbook.SaveAs(file);
342-
file.Dispose();
340+
workbook.SaveAs("DataValidation.xlsx");
343341
}
344342
{% endhighlight %}
345343

0 commit comments

Comments
 (0)