You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm attempting to incorporate a nested list into my template, but it seems to be unable to recognize even the first level of nesting. Despite my thorough examination and repeated review of the documentation, I haven’t been successful. Could anyone lend a hand? I’ve included my template, code, and the resulting issue below for reference. I appreciate your help in advance!
`
var httpClient = _httpClientFactory.CreateClient("Anonymous");
using Stream calibri = await httpClient.GetStreamAsync("templates/calibri.ttf");
using Stream arial = await httpClient.GetStreamAsync("templates/arial.ttf");
LoadOptions.DefaultGraphicEngine = DefaultGraphicEngine.CreateOnlyWithFonts(
calibri,
arial
);
using var streamTemplate = await httpClient.GetStreamAsync(
"templates/CustomerReportTemplate.xlsx"
);
using var template = new XLTemplate(streamTemplate);
template.AddVariable("Customers", result?.Data);
template.Generate();
template.Workbook.Worksheets
.Worksheet(template.Workbook.Worksheets.First().Name)
.ColumnsUsed()
.AdjustToContents();
using var memoryStream = new MemoryStream();
template.SaveAs(memoryStream);
return memoryStream.ToArray();
I'm attempting to incorporate a nested list into my template, but it seems to be unable to recognize even the first level of nesting. Despite my thorough examination and repeated review of the documentation, I haven’t been successful. Could anyone lend a hand? I’ve included my template, code, and the resulting issue below for reference. I appreciate your help in advance!
`
`
CustomerReportTemplate.xlsx
The text was updated successfully, but these errors were encountered: