احفظ ملف TXT بتنسيق XLTX في NodeJS
     API 
         POST 
            
                https://api.aspose.cloud/v3.0/cells/{name}/SaveAs
                
            
        يعد حفظ تنسيقات الملفات من TXT بتنسيق XLTX مهمة معقدة. يتم تنفيذ جميع عمليات النقل من تنسيق TXT إلى XLTX بواسطة NodeJS SDK الخاص بنا مع الحفاظ على المحتوى الهيكلي والمنطقي الرئيسي لجدول بيانات TXT المصدر. تعد مكتبة NodeJS الخاصة بنا حلاً احترافيًا لحفظ TXT كملفات XLTX عبر الإنترنت. يوفر Cloud SDK لمطوري NodeJS وظائف قوية ومخرجات XLTX مثالية.
مثال على رمز NodeJS لحفظ TXT كـ XLTX باستخدام REST API
// For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-node/
    const { CellsApi, CellsSaveAs_PostDocumentSaveAsRequest } = require("asposecellscloud");
    const cellsApi = new CellsApi(process.env.ProductClientId, process.env.ProductClientSecret);
    var req = new CellsSaveAs_PostDocumentSaveAsRequest({
      name: "Book1.txt",
      folder: "CellsTests",
      newfilename: "Book1Saveas.xltx",
    });
    cellsApi.cellsSaveAsPostDocumentSaveAs(req)
      .then((result) => {
        console.log(result)
    });
كيفية حفظ TXT بتنسيق XLTX باستخدام مكتبة Cloud NodeJS Cells.
- تسجيل حساب فيلوحة القيادة للحصول على تفاصيل الحصص والترخيص API مجانًا
- قم بتثبيت مكتبة NodeJS وأضف المرجع (استيراد المكتبة) إلى مشروعك.
- افتح الملف المصدر في جافا سكريبت.
- استخدم طريقة `PostWorkbookSaveAs` لاسترداد الدفق الناتج.
متطلبات النظام
- العقدة v6.17.1 أو الأحدث