Skip to content
Discussion options

You must be logged in to vote

Hello, sorry for the late reply. If you're still trying to solve the issue you can convert your data to a DataTable as a workaround:

string[][] data = [["a", "b", "c"], ["1", "2", "3"]];
var maxLen = data.Max(x => x.Length);
 
var dt = new DataTable();
 
for (int i = 0; i < maxLen; i++) 
    dt.Columns.Add(null, typeof(string));
 
foreach (var row in data) 
    dt.Rows.Add([..row]);
 
var conf = new OpenXmlConfiguration { AutoFilter = false, FreezeRowCount = 0 };
MiniExcel.SaveAs(yourPath, dt, printHeader: false, configuration: conf);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by michelebastione
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants