I was unable to freeze the top row in excel. I am using v11.2
Using the following line
excelWorksheet.DisplayOptions.FrozenPaneSettings.FrozenRows = 0;
Set FrozenRows to 1 and set excelWorksheet.DisplayOptions.PanesAreFrozen to True.