File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Getting Started/Linux/Convert Excel to Image/ConvertExcelToImage Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -15,18 +15,17 @@ public static void Main(string[] args)
1515 IWorkbook workbook = application . Workbooks . Open ( excelStream ) ;
1616 IWorksheet worksheet = workbook . Worksheets [ 0 ] ;
1717
18- //Initialize XlsIO renderer.
18+ //Initialize XlsIORenderer
1919 application . XlsIORenderer = new XlsIORenderer ( ) ;
2020
21- //Create the MemoryStream to save the image.
21+ //Create the MemoryStream to save the image
2222 MemoryStream imageStream = new MemoryStream ( ) ;
2323
24- //Save the converted image to MemoryStream.
24+ //Save the converted image to MemoryStream
2525 worksheet . ConvertToImage ( worksheet . UsedRange , imageStream ) ;
2626 imageStream . Position = 0 ;
2727
2828 #region Save
29- //Saving the workbook
3029 FileStream outputStream = new FileStream ( Path . GetFullPath ( "Output/Sample.jpeg" ) , FileMode . Create , FileAccess . Write ) ;
3130 imageStream . CopyTo ( outputStream ) ;
3231 #endregion
You can’t perform that action at this time.
0 commit comments