I am having a linux machine and want system drawing
to convert a excel table to image for Free.
Here is my code
using GrapeCity.Documents.Excel;
using System;
using System.Drawing;
using System.IO;
class Program
{
static void Main()
{
//Create a new workbook
var workbook = new GrapeCity.Documents.Excel.Workbook();
Console.WriteLine("Working...");
FileStream fileStream = new FileStream("Test121.xlsx", FileMode.Open);
//Open a xlsx file
workbook.Open(fileStream);
IWorksheet worksheet = workbook.Worksheets[0];
//Export the worksheet to image
worksheet.ToImage("Test121.png");
Console.WriteLine("Done!!");
}
}
but this gives a warning at top of image that it is unlicensed
I also could not use Spire.XLS as my excel file could have more than 200 rows.
btw i am using C#.Net on my ubuntu 20.04 LTS