1 parent 6bfa579 commit 94db74eCopy full SHA for 94db74e
1 file changed
Charts/Create-clustered-column-chart/.NET/Create-clustered-column-chart/Program.cs
@@ -35,13 +35,8 @@
35
//Set legend
36
chart.HasLegend = true;
37
chart.Legend.Position = OfficeLegendPosition.Bottom;
38
-//Create a file stream.
39
40
-using (FileStream outputFileStream = new FileStream(Path.GetFullPath(@"Output/Output.docx"), FileMode.Create, FileAccess.ReadWrite))
41
-{
42
- //Save the Word document to the file stream.
43
- document.Save(outputFileStream, FormatType.Docx);
44
-}
+//Save the Word document
+document.Save(Path.GetFullPath(@"Output/Output.docx"), FormatType.Docx);
45
46
47
/// <summary>
0 commit comments