تحويل الرسم البياني إلى صورة يشير هذا REST API إلى كيفية تحويل مخطط إلى صورة.
RSET API   
Copy 
GET http://api.aspose.cloud/v3.0/cells/{ name} /worksheets/{ sheetName} /charts/{ chartNumber} ?format={ format} 
معلمات الطلب هي:
اسم المعلمة 
يكتب 
المسار/سلسلة الاستعلام/نص HTTP 
وصف 
 
 
اسم 
خيط 
طريق 
اسم الوثيقة. 
 
اسم الورقة 
خيط 
طريق 
اسم ورقة العمل. 
 
رقم الرسم البياني 
عدد صحيح 
طريق 
رقم الرسم البياني. 
 
شكل 
خيط 
استفسار 
تنسيق الملف المُصدَّر. 
 
مجلد 
خيط 
استفسار 
مجلد المستندات. 
 
اسم التخزين 
خيط 
استفسار 
اسم التخزين. 
 
 
المواصفات OpenAPI  يحدد واجهة برمجة يمكن الوصول إليها بشكل عام ويسمح لك بتنفيذ تفاعلات REST مباشرة من متصفح الويب.
يمكنك استخدام أداة سطر الأوامر cURL للوصول بسهولة إلى خدمات الويب Aspose.Cells. يوضح المثال التالي كيفية إجراء مكالمات إلى Cloud API باستخدام cURL.
  
 
عائلة SDK السحابية   
يُعد استخدام حزمة تطوير برمجيات (SDK) أفضل طريقة لتسريع عملية التطوير. فهي تُعنى بالتفاصيل البسيطة وتُتيح لك التركيز على مهام مشروعك. يُرجى الاطلاع علىمستودع GitHub  للحصول على قائمة كاملة بـ Aspose.Cells Cloud SDKs.
توضح أمثلة التعليمات البرمجية التالية كيفية إجراء مكالمات إلى خدمات الويب Aspose.Cells باستخدام مجموعات أدوات تطوير البرامج المختلفة:
  
       
      C# 
      
    
      
        
  
    
    
        
  
  
  
     
 
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters 
     
  
  
  
    
     
 
  
  
        
           
          // For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-dotnet/ 
         
        
           
          namespace Aspose.Cells.Cloud.SDK.Example 
         
        
           
          { 
         
        
           
              using Aspose.Cells.Cloud.SDK.Api; 
         
        
           
              using Aspose.Cells.Cloud.SDK.Request; 
         
        
           
              using System; 
         
        
           
          
 
         
        
           
              public partial class CellsApiExample 
         
        
           
              { 
         
        
           
                  public void GetWorksheetChart1Example() 
         
        
           
                  { 
         
        
           
                      string CellsCloudClientId ="....";//get from https://dashboard.aspose.cloud/#/applications 
         
        
           
                  string CellsCloudClientSecret="...";//get from https://dashboard.aspose.cloud/#/applications 
         
        
           
                      GetWorksheetChartRequest request = new GetWorksheetChartRequest 
         
        
           
                      { 
         
        
           
                          name = "Book1.xlsx", 
         
        
           
                          sheetName = "Sheet4", 
         
        
           
                          chartNumber = 1, 
         
        
           
                          folder = "TestData/In" 
         
        
           
                      }; 
         
        
           
                      cellsApi.GetWorksheetChart(request); 
         
        
           
                  } 
         
        
           
              } 
         
        
           
          } 
         
        
           
          //  Obsolet 
         
        
           
          //CellsApi instance = new CellsApi(clientId, clientSecret, apiVersion, testbaseurl); 
         
        
           
          //string name = MYDOC; 
         
        
           
          //string sheetName = SHEET3; 
         
        
           
          //int? chartNumber = 0; 
         
        
           
          //string folder = TEMPFOLDER; 
         
        
           
          //string format = "png"; 
         
        
           
          //instance.UploadFile(folder + @"\" + name, File.Open( @"C:\TestData\" +name)); 
         
        
           
          //var response = instance.CellsChartsGetWorksheetChart(name, sheetName, chartNumber, format, folder); 
         
        
           
          //Assert.IsInstanceOf<System.IO.Stream>(response, "response is System.IO.Stream"); 
         
        
           
          
 
         
  
 
     
   
 
       
      
     
 
 
       
      PHP 
      
       
      Ruby 
      
       
      Node.js 
      
    
      
        
  
    
    
        
  
  
  
     
 
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters 
     
  
  
  
    
     
 
  
  
        
           
          const { CellsApi, UploadFileRequest, CellsCharts_GetWorksheetChartRequest } = require("asposecellscloud"); 
         
        
           
          const clientId = process.env.CellsCloudClientId; 
         
        
           
          const clientSecret = process.env.CellsCloudClientSecret; 
         
        
           
          const ApiURL = process.env.CellsCloudApiBaseUrl; 
         
        
           
          const fs = require('fs'); 
         
        
           
          const path = require('path'); 
         
        
           
          const cellsApi = new CellsApi(clientId, clientSecret,"v3.0",ApiURL); 
         
        
           
          const localPath = "D:/aspose-cells-cloud-node/TestData/" 
         
        
           
          
 
         
        
           
          const filename = "myDocument.xlsx"; 
         
        
           
          const data =fs.createReadStream(path.join(localPath, filename)); 
         
        
           
          
 
         
        
           
          const req = new UploadFileRequest({ 
         
        
           
            path: "Temp/" + filename, 
         
        
           
            file: data 
         
        
           
          }); 
         
        
           
          cellsApi.uploadFile(req) 
         
        
           
            .then((result) => { 
         
        
           
          
 
         
        
           
              const req = new CellsCharts_GetWorksheetChartRequest(); 
         
        
           
                    req.name = filename; 
         
        
           
                    req.sheetName = "Sheet3"; 
         
        
           
                    req.chartNumber = 0; 
         
        
           
                    req.format = "png"; 
         
        
           
                    req.folder = "Temp"; 
         
        
           
              cellsApi.cellsChartsGetWorksheetChart(req) 
         
        
           
               .then((result) => { 
         
        
           
                  console.log("successful") 
         
        
           
          
 
         
        
           
                 }).catch((error) => { 
         
        
           
              console.error('Unhandled Promise Rejection:', error); 
         
        
           
            }) 
         
        
           
            }) 
         
  
 
     
   
 
       
      
     
 
 
       
      Python 
      
    
      
        
  
    
    
        
  
  
  
     
 
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters 
     
  
  
  
    
     
 
  
  
        
           
          # For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-python 
         
        
           
          import os 
         
        
           
          
 
         
        
           
          from asposecellscloud.apis.cells_api import CellsApi 
         
        
           
          from asposecellscloud.models import * 
         
        
           
          from asposecellscloud.requests import * 
         
        
           
          
 
         
        
           
          CellsCloudClientId ='....'  # get from https://dashboard.aspose.cloud/#/applications 
         
        
           
          CellsCloudClientSecret='....'  # get from https://dashboard.aspose.cloud/#/applications 
         
        
           
          api  = CellsApi(CellsCloudClientId,CellsCloudClientSecret) 
         
        
           
          request =  GetWorksheetChartsRequest( 'Book1.xlsx', 'Sheet4',folder= 'PythonTest',storage_name= '') 
         
        
           
          api.get_worksheet_charts(request) 
         
        
           
          
 
         
  
 
     
   
 
       
      
     
 
 
       
      Android 
      
       
      Objective C 
      
       
      Perl 
      
    
      
        
  
    
    
        
  
  
  
     
 
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters 
     
  
  
  
    
     
 
  
  
        
           
          # For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-perl/ 
         
        
           
          use strict; 
         
        
           
          use warnings; 
         
        
           
          use utf8;  
         
        
           
          use File::Slurp; 
         
        
           
          use MIME::Base64; 
         
        
           
          use AsposeCellsCloud::CellsApi; 
         
        
           
          my $config = AsposeCellsCloud::Configuration->new( client_id => $ENV{'ProductClientId'}, client_secret => $ENV{'ProductClientSecret'}); 
         
        
           
          my $instance = AsposeCellsCloud::CellsApi->new(AsposeCellsCloud::ApiClient->new( $config)); 
         
        
           
          
 
         
        
           
          my $remoteFolder = 'TestData/In'; 
         
        
           
          my $remoteName = 'Book1.xlsx'; 
         
        
           
          my $request = AsposeCellsCloud::Request::GetWorksheetChartRequest->new(); 
         
        
           
          $request->{name} =  $remoteName; 
         
        
           
          $request->{sheet_name} =  'Sheet4'; 
         
        
           
          $request->{chart_number} =  0; 
         
        
           
          $request->{format} =  'png'; 
         
        
           
          $request->{folder} =  $remoteFolder; 
         
        
           
          $request->{storage_name} =  ''; 
         
        
           
          my $result =  $api->get_worksheet_chart(request=> $request); 
         
  
 
     
   
 
       
      
     
 
 
       
      Go