bug: Cannot do this for multiple selection (#641)

When tabSelected="1", the resulting Excel will say "Cannot do this for multiple selected areas"

Signed-off-by: Gary Jia <35099424+jiaguangli@users.noreply.github.com>
This commit is contained in:
Gary Jia 2024-07-27 08:48:40 +08:00 committed by GitHub
parent 67e97f36b5
commit c92aa0dc17
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,7 +16,7 @@ namespace MiniExcelLibs.OpenXml.Constants
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>";