Google docs spreadsheet asp.net

I am using the google docs spreadsheet API for .net and I want to insert a new line into google docs using asp.net C #. I can not do it.

Can anyone help me?

+4
source share
1 answer

If you post a code that you already have, we can help you specifically.

According to the Google Developer's Guide ( here ):

Add row

To insert a new row in a list-based ribbon, first create a new ListEntry and set its Elements property to contain cells in the row. For example, given a ListEntry that represents an existing row, you can query the user for the values โ€‹โ€‹of each column as follows:

ListEntry newRow = new ListEntry(); foreach (ListEntry.Custom element in existingRow.Elements) { Console.Write("Enter the value of column {0}: ", element.LocalName); String elementValue = Console.ReadLine(); ListEntry.Custom curElement = new ListEntry.Custom(); curElement.LocalName = element.LocalName; curElement.Value = elementValue; newRow.Elements.Add(curElement); } 

Then insert a new line into the ListFeed as follows:

 ListEntry insertedRow = feed.Insert(newRow) as ListEntry; 

The tables insert a new row immediately after the last row, which appears in the feed based on the list, which should be indicated immediately before the first completely empty row. This code is equivalent to sending an authenticated POST request to the URL:

 https://spreadsheets.google.com/feeds/list/key/worksheetId/private/full 

with the corresponding XML document in the body of the POST.

Thanks.

+2
source

Source: https://habr.com/ru/post/1346855/


All Articles