Excel fix; Records table fix;
This commit is contained in:
@@ -28,7 +28,12 @@ namespace WebAPI.Exports
|
||||
List<IList<object>> data = new List<IList<object>>() { new List<object>() { layer.Name! } };
|
||||
foreach (Record record in layer.Records!)
|
||||
{
|
||||
data.Add(new List<object> { record.Code!, record.Value1! });
|
||||
data.Add(new List<object> { record.Code!, record.Value1!, record.Value2!, record.Value3!, record.Value4!,
|
||||
record.Value5!, record.Value6!, record.Value7!, record.Value8!, record.Value9!, record.Value10!,
|
||||
record.Value11!, record.Value12!, record.Value13!, record.Value14!, record.Value15!, record.Value16!,
|
||||
record.Value17!, record.Value18!, record.Value19!, record.Value20!, record.Value21!, record.Value22!,
|
||||
record.Value23!, record.Value24!, record.Value25!, record.Value26!, record.Value27!, record.Value28!,
|
||||
record.Value29!, record.Value30!, record.Value31!});
|
||||
}
|
||||
|
||||
Google.Apis.Drive.v3.Data.File body = new Google.Apis.Drive.v3.Data.File();
|
||||
@@ -39,7 +44,7 @@ namespace WebAPI.Exports
|
||||
var file = request.Execute();
|
||||
|
||||
string sheetId = file.Id;
|
||||
var range = $"Sheet1!A1:B${data.Count}";
|
||||
var range = $"Sheet1!A1:AF${data.Count}";
|
||||
|
||||
ValueRange valueRange = new ValueRange() { Values = data};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user