using System.Drawing not working in C# when executed in Linux Environment

464 views Asked by At

I am generating an excel programmatically, but it works fine in VS, when I tried automating it and compiling via Linux environment, it shows error.

` using System.Drawing;

ws1.View.FreezePanes(2, 1);

var allCells = ws1.Cells[ws1.Dimension.Address]; allCells.AutoFilter = true;

// Auto-fit all the columns allCells.AutoFitColumns();`

Not working in Linux Environment. Is there a way to make this work ?

Is there an Alternative to using System.Drawing; library ?

0

There are 0 answers