I am having an issue where worksheets in a workbook are being grouped by default. Here is some sample code:
//Open a Workbook.
Workbook yearly = new Workbook();
//Open another Workbook.
Workbook monthly = new Workbook();
//Open another Workbook merge the two.
Workbook main = new Workbook();
main.Worksheets.Add("Data from A");
main.Worksheets.Add("Data from B");
//Save the file.
main.Worksheets.ActiveSheetIndex = 0;
I've attached the related spreadsheets. If you run the above code, the resulting spreadsheet will show the worksheets as being highlighted and grouped. The user must right click one and select 'Ungroup' or click on any other worksheet to break the grouping.