Skip to content

Commit 0ced02f

Browse files
966385-ExcelToImageLinuxExample
1 parent e412ac9 commit 0ced02f

File tree

1 file changed

+3
-4
lines changed
  • Getting Started/Linux/Convert Excel to Image/ConvertExcelToImage

1 file changed

+3
-4
lines changed

Getting Started/Linux/Convert Excel to Image/ConvertExcelToImage/Program.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)