Skip to content

Commit

Permalink
bug: Cannot do this for multiple selection (#641)
Browse files Browse the repository at this point in the history
When tabSelected="1", the resulting Excel will say "Cannot do this for multiple selected areas"

Signed-off-by: Gary Jia <[email protected]>
  • Loading branch information
jiaguangli authored Jul 27, 2024
1 parent 67e97f3 commit c92aa0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MiniExcel/OpenXml/Constants/WorksheetXml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ internal static string Dimension(string dimensionRef)
internal const string StartSheetViews = "<x:sheetViews>";
internal const string EndSheetViews = "</x:sheetViews>";

internal static string StartSheetView( int tabSelected=1, int workbookViewId=0 )
internal static string StartSheetView( int tabSelected=0, int workbookViewId=0 )
=> $"<x:sheetView tabSelected=\"{tabSelected}\" workbookViewId=\"{workbookViewId}\">";
internal const string EndSheetView = "</x:sheetView>";

Expand Down

0 comments on commit c92aa0d

Please sign in to comment.