Exportera ODS till XLSX-fil i molnet
Excel & OpenOffice-kalkylbladsexport med open source Cloud SDK för Go
Exoprera ODS till XLSX-fil i Cloud SDK för Go
- Skapa ett konto påinstrumentbräda för att få gratis API kvot & auktoriseringsinformation
- Initiera
CellsApi
med klient-id, klienthemlighet, basadress och API-version - Ring
CellsWorkbookPutConvertWorkbook
-metoden för att få den resulterande XLSX-strömmen
Kom igång med Excel REST API
Få Excel Cloud SDK for .NET källkod frånGitHub för att kompilera SDK själv eller gå tillSläpps för alternativa nedladdningsalternativ.
Ta också en titt på Swagger-baseradAPI Referens att veta mer omExcel REST API.
Go-kod för ODS till XLSX-konvertering
// For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-go/
package main
import (
"os"
asposecellscloud "github.com/aspose-cells-cloud/aspose-cells-cloud-go/v22"
)
func main() {
instance := asposecellscloud.NewCellsApiService(os.Getenv("ProductClientId"), os.Getenv("ProductClientSecret"))
file, err := os.Open("Book1.xlsx")
if err != nil {
return
}
convertWorkbookOpts := new(asposecellscloud.CellsWorkbookPutConvertWorkbookOpts)
convertWorkbookOpts.Format = "xlsx"
value, response, err1 := instance.CellsWorkbookPutConvertWorkbook(file, convertWorkbookOpts)
if err1 != nil {
return
}
file1, err2 := os.Create("Dest.xlsx")
if err2 != nil {
return
}
if _, err3 := file1.Write(value); err3 != nil {
return
}
file1.Close()
}
FAQ
-
How can I get started with Aspose. REST APIs?Quickstart not only guides through the initialization of Aspose. Cloud API, it also helps in installing the required libraries.
-
Where can I see the release notes for Aspose. Cloud API?Complete release notes can be reviewed at Aspose. Cloud Documentation.
-
Is it safe to convert to in the Cloud?Of course! Aspose Cloud uses Amazon EC2 cloud servers that guarantee the security and resilience of the service. Please read more about Aspose's Security Practices.
-
What file formats are supported by Aspose. Cloud API?Aspose. Cloud can convert to and more. Checkout the complete list of supported file formats.
-
I do not have time to set up. Is there a quick demo for to that I can try?Indeed! Checkout the to Conversion App.