Hi Kjell,
Thank you for your interest in Syncfusion products.
You can create and define global styles for Border and Alignment separtely. Later, you can resuse them by referring to the style name alone.
Please refer the following link for assigning styles.
http://help.syncfusion.com/ug_82/reporting_xlsio/GlobalStyles.htmlAfter the importing data, you can get the last row using IWorksheet.UsedRange.LastRow property.
int lRow = sheet.UsedRange.LastRow;
sheet[10,3,lRow,3].CellStyleName = "alignmentStyle"; // refer the created alignment style
Similarly, you can set borders as given in the code snippet:
sheet[10,1,10,6].CellStyleName = "borderStyle"; // refer the created borderstyle
Please try this and let us know if you have any questions.
Regards,
Geetha