I am trying to add an image via a URL using IXLWorksheet. However, it says the file is not supported.
My method:
private void createReport(ref IXLWorksheet)
{
...
w.Range($"S{rowCounter}:U{rowCounter}").Merge();
w.Range($"S{rowCounter}");
var logo = "https://sm.mashable.com/t/mashable_in/photo/default/nasa-
galaxy_9pu4.1248.jpg"
w.AddPicture(logo);
...
}
However an exception appears at the w.AddPicture(logo);
line saying:
The given path's format is not supported url worksheet
I assume this only works with a direct path in a folder. How can I make it add a picture straight from the URL?