Quantcast
Channel: ClosedXML - The easy way to OpenXML
Viewing all articles
Browse latest Browse all 1877

Created Unassigned: Is there a way to create Excel relationships using ClosedXML? I tried to do it using a Dataset but it was not implemented in the Excel File. [9458]

$
0
0
Is there a way to create Excel relationships using ClosedXML? I tried to do it using a Dataset but it was not implemented in the Excel File.
```
using (XLWorkbook wb = new XLWorkbook())
{
var ds = exportableEntity.GetDataSet();
wb.Worksheets.Add(ds);


wb.Style.Alignment.Horizontal = XLAlignmentHorizontalValues.Center;

using (var memoryStream = new MemoryStream())
{
wb.SaveAs(memoryStream);
//Export file
}
}
```

Viewing all articles
Browse latest Browse all 1877

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>