Δημιουργήστε ένα γράφημα του Excel χρησιμοποιώντας το C# REST API

Αυτό το σεμινάριο βοηθά στο πώς να δημιουργήσετε ένα γράφημα Excel χρησιμοποιώντας το C# REST API. Θα μάθετε πώς να προσθέτετε ένα γράφημα στο Excel χρησιμοποιώντας τη διεπαφή C# REST με ένα Cloud SDK που βασίζεται σε .NET. Θα αποκαλύψει όλες τις απαραίτητες ιδιότητες και μεθόδους που απαιτούνται για την εκτέλεση αυτής της εργασίας στο διαδίκτυο.

Προαπαιτούμενο Loading…

Steps for Inserting Graph in Excel using C# Low Code API

  1. Create an instance of the CellsApi using a client ID, client secret, and API base URL
  2. Specify the Excel file name that will be uploaded
  3. Send a request to upload the specified local Excel file to the Aspose Cloud storage
  4. Prepare a request to add a pie chart to a specific worksheet using a defined cell area
  5. Use the API for adding a chart with the PutWorksheetChart() method to the uploaded Excel file stored in the cloud
  6. Request the modified Excel file containing the new chart from the cloud storage
  7. Save the downloaded file stream to a new file on the local system

These steps summarize how to put chart in Excel using C# Low Code API. Commence the process by uploading an Excel file to Aspose Cloud, adding a pie chart to a specified worksheet using a defined data range and position, and then downloading the updated file. The modified file is saved locally for further use.

Κώδικας για προσθήκη γραφήματος πίτας στο Excel χρησιμοποιώντας τη διεπαφή C# REST

This sample code has demonstrated the process of how to create a graph on Excel using C# REST API. You may create other types of charts by setting the desired value in the charType property. For adding multiple charts, create the desired requests and execute them in a loop for creating the graphs in the uploaded worksheet.

Αυτό το άρθρο μας δίδαξε τη διαδικασία δημιουργίας γραφήματος. Για την προσθήκη ενός τύπου σε ένα αρχείο Excel, ανατρέξτε στο άρθρο στο Προσθήκη τύπου Excel χρησιμοποιώντας C# REST API.

 Ελληνικά