# ExcelGoogleSheetsExtensions

Planning helpers for Excel to Google Sheets translation.

Class 

`OfficeIMO.Excel.GoogleSheets`

**Namespace**

`OfficeIMO.Excel.GoogleSheets`

**Assembly**

`OfficeIMO.Excel.GoogleSheets`

**Source revision**

`ba882f6b0d07` with working tree changes

**Source**

[ExcelGoogleSheetsExtensions.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel.GoogleSheets/ExcelGoogleSheetsExtensions.cs#L13)

**Modifiers**

static

Planning helpers for Excel to Google Sheets translation.

## Inheritance

- object
- ExcelGoogleSheetsExtensions

Filter members 

Show inherited

## Methods

`public static GoogleSheetsBatch BuildGoogleSheetsBatch(ExcelDocument document, GoogleSheetsSaveOptions? options = null)` [#](#method-buildgooglesheetsbatch-officeimo-excel-exceldocument-officeimo-excel-googlesheets-googlesheetssaveoptions)

[ExcelGoogleSheetsExtensions.cs:21](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel.GoogleSheets/ExcelGoogleSheetsExtensions.cs#L21)

Compiles workbook content into provider-neutral Sheets requests without contacting Google.

Parameters

**document OfficeIMO.Excel.ExcelDocument required**

**options OfficeIMO.Excel.GoogleSheets.GoogleSheetsSaveOptions? = null optional**

Returns

`GoogleSheetsBatch`

`public static GoogleSheetsTranslationPlan BuildGoogleSheetsPlan(ExcelDocument document, GoogleSheetsSaveOptions? options = null)` [#](#method-buildgooglesheetsplan-officeimo-excel-exceldocument-officeimo-excel-googlesheets-googlesheetssaveoptions)

[ExcelGoogleSheetsExtensions.cs:13](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel.GoogleSheets/ExcelGoogleSheetsExtensions.cs#L13)

Reports workbook features and fidelity risks without contacting Google.

Parameters

**document OfficeIMO.Excel.ExcelDocument required**

**options OfficeIMO.Excel.GoogleSheets.GoogleSheetsSaveOptions? = null optional**

Returns

`GoogleSheetsTranslationPlan`

`public static Task<GoogleSpreadsheetReference> ExportToGoogleSheetsAsync(ExcelDocument document, GoogleWorkspaceSession session, GoogleSheetsSaveOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-exporttogooglesheetsasync-officeimo-excel-exceldocument-officeimo-googleworkspace-googleworkspacesession-officeimo-excel-googlesheets-googlesheetssaveoptions-threading-cancellationtoken)

[ExcelGoogleSheetsExtensions.cs:31](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel.GoogleSheets/ExcelGoogleSheetsExtensions.cs#L31)

Creates or replaces a Google spreadsheet using the supplied session.

Parameters

**document OfficeIMO.Excel.ExcelDocument required**

**session OfficeIMO.GoogleWorkspace.GoogleWorkspaceSession required**

**options OfficeIMO.Excel.GoogleSheets.GoogleSheetsSaveOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<GoogleSpreadsheetReference>`

`public static Task<GoogleSheetsImportResult> ImportGoogleSheetAsync(GoogleWorkspaceSession session, string spreadsheetId, GoogleSheetsImportOptions? options = null, CancellationToken cancellationToken = default)` [#](#method-importgooglesheetasync-officeimo-googleworkspace-googleworkspacesession-string-officeimo-excel-googlesheets-googlesheetsimportoptions-threading-cancellationtoken)

[ExcelGoogleSheetsExtensions.cs:41](https://github.com/EvotecIT/OfficeIMO/blob/ba882f6b0d07acddd884b5e7d3086b0cfff0a05a/OfficeIMO.Excel.GoogleSheets/ExcelGoogleSheetsExtensions.cs#L41)

Imports a Google spreadsheet and returns a caller-owned Excel document.

Parameters

**session OfficeIMO.GoogleWorkspace.GoogleWorkspaceSession required**

**spreadsheetId string required**

**options OfficeIMO.Excel.GoogleSheets.GoogleSheetsImportOptions? = null optional**

**cancellationToken System.Threading.CancellationToken = default optional**

Returns

`Task<GoogleSheetsImportResult>`

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

<!-- PowerForge markdown artifact sha256:2A828BA467F0939BDE9317A16B8AEDFB9DDDD8399BB1B42CD1C80C82784C1466 -->
