قم بتحويل ملف XLS إلى GIF في C#
API
PUT
https://api.aspose.cloud/v3.0/cells/convert
يعد تحويل تنسيقات الملفات من XLS إلى GIF مهمة معقدة. يتم تنفيذ جميع انتقالات تنسيق XLS إلى GIF بواسطة C# SDK مع الحفاظ على المحتوى الإنشائي والمنطقي الرئيسي لجدول بيانات XLS المصدر. تعد مكتبتنا C# حلاً احترافيًا لتحويل ملفات XLS إلى GIF عبر الإنترنت. يوفر Cloud SDK للمطورين C# وظائف قوية وإخراج GIF مثالي.
مثال رمز في C# باستخدام REST API لتحويل XLS إلى تنسيق GIF
// For complete examples and data files, please go to https://github.com/aspose-cells-cloud/aspose-cells-cloud-dotnet/
string name = "Book1.xls";
string format = "gif";
string password = null;
string outPath = null;
string storageName = null;
string destFile = "Book1.gif";
CellsApi cellsApi = new CellsApi(Environment.GetEnvironmentVariable("ProductClientId"), Environment.GetEnvironmentVariable("ProductClientSecret"));
using (Stream stream = cellsApi.CellsWorkbookPutConvertWorkbook(File.OpenRead(name), format, password, outPath, storageName))
{
using (Stream outStream = File.OpenWrite(destFile))
{
stream.CopyTo(outStream);
}
}
كيفية استخدام C# API لتحويل XLS إلى GIF
- قم بإنشاء حساب علىلوحة القيادة للحصول على تفاصيل الحصص والتفويض API المجانية
- تهيئة CellsApi باستخدام معرف العميل وسر العميل وعنوان URL الأساسي وإصدار API
- استدعاء طريقة CellsWorkbookPutConvertWorkbook للحصول على الدفق الناتج
متطلبات النظام
- NET Framework 4.5.2 أو أحدث
- Net Standard 2.0 أو أحدث