احفظ ملف XLTX بتنسيق DOCX في Ruby
     API 
         POST 
            
                https://api.aspose.cloud/v3.0/cells/{name}/SaveAs
                
            
        يعد حفظ تنسيقات الملفات من XLTX بصيغة DOCX مهمة معقدة. يتم تنفيذ جميع عمليات النقل من تنسيق XLTX إلى DOCX بواسطة Ruby SDK الخاص بنا مع الحفاظ على المحتوى الهيكلي والمنطقي الرئيسي لجدول بيانات XLTX المصدر. تعد مكتبة Ruby الخاصة بنا حلاً احترافيًا لحفظ XLTX كملفات DOCX عبر الإنترنت. يوفر Cloud SDK لمطوري Ruby وظائف قوية ومخرجات DOCX مثالية.
مثال على كود روبي لحفظ XLTX كـ DOCX باستخدام REST API
# For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/
    require 'openssl'
    require 'bundler'
    require 'aspose_cells_cloud'
    @instance = AsposeCellsCloud::CellsApi.new(ENV['ProductClientId'],ENV['ProductClientSecret'])
    name = 'Book1.xltx'
    save_options = nil
    newfilename = 'Book1Saveas.docx'
    is_auto_fit_rows = true
    is_auto_fit_columns = true
    folder = 'Temp'
    result = @instance.cells_save_as_post_document_save_as(name, { :save_options=>save_options, :newfilename=>(folder+"/"+newfilename), :is_auto_fit_rows=>is_auto_fit_rows, :is_auto_fit_columns=>is_auto_fit_columns, :folder=>folder})
كيفية حفظ XLTX كـ DOCX باستخدام مكتبة Cloud Ruby Cells.
- تسجيل حساب فيلوحة القيادة للحصول على تفاصيل الحصص والترخيص API مجانًا
- قم بتثبيت مكتبة روبي وأضف المرجع (استيراد المكتبة) إلى مشروعك.
- افتح الملف المصدر في روبي.
- استخدم طريقة `post_workbook_save_as` لاسترداد الدفق الناتج.
متطلبات النظام
- روبي 2.5 أو أحدث