फ्री स्विफ्ट लाइब्रेरी एक्सेल एक्सएलएसएक्स फ़ाइलें पढ़ने, लिखने और बदलने के लिए

एक्सेल एक्सएलएसएक्स स्प्रेडशीट बनाएं, संपादित करें, संशोधित करें और बदलें, मोबाइल उपकरणों पर सीधे ओपन सोर्स स्विफ्ट लाइब्रेरी का उपयोग करके स्टाइल लागू करें और डेटा निकालें।

SwiftXLSX क्या है?

आधुनिक सॉफ़्टवेयर विकास की दुनिया में विभिन्न फ़ाइल फ़ॉर्मेट के साथ काम करने की क्षमता आवश्यक है। व्यापार और डेटा विश्लेषण में सबसे सामान्य फ़ाइल फ़ॉर्मेट में से एक Excel स्प्रेडशीट है। चाहे आप डेटा को पार्स कर रहे हों, रिपोर्ट तैयार कर रहे हों, या अपनी Swift एप्लिकेशन में Excel फ़ाइलों के साथ इंटरैक्ट करने की ज़रूरत हो, SwiftXLSX लाइब्रेरी आपके टूलकिट में एक मूल्यवान उपकरण है। यह एक ओपन सोर्स Swift लाइब्रेरी है जो XLSX फ़ॉर्मेट में Excel फ़ाइलों को पढ़ने और लिखने की प्रक्रिया को सरल बनाती है। यदि आप एक Swift डेवलपर हैं जो डेटा पार्स करने, रिपोर्ट बनाने या अपने एप्लिकेशन में Excel फ़ाइलों को प्रबंधित करने के कार्य में लगे हैं, तो SwiftXLSX आपके लिए इसे आसान बना सकता है।

SwiftXLSX को उपयोग में आसान बनाने और आपके Swift प्रोजेक्ट्स में सहजता से एकीकृत करने के लिए डिज़ाइन किया गया है। यह लाइब्रेरी Excel फ़ाइलों के साथ काम करने की प्रक्रिया को सरल बनाती है, जिससे डेटा निष्कर्षण, हेरफेर और रिपोर्ट जनरेशन जैसी कार्य सरल होते हैं। लाइब्रेरी के कई महत्वपूर्ण फीचर हैं, जैसे Excel XLSX दस्तावेज़ पढ़ना और लिखना, विशिष्ट सेल, पंक्तियों या कॉलम से डेटा निकालना, डेटा सॉर्ट करना, फ़िल्टर करना और Excel शीट्स में मानों की गणना करना, सेल पर फ़ॉर्मेटिंग और स्टाइलिंग लागू करना, और भी बहुत कुछ। यह लाइब्रेरी विभिन्न प्लेटफ़ॉर्म जैसे iOS, macOS, और Linux में काम करने के लिए डिज़ाइन की गई है।

The SwiftXLSX library is a powerful and versatile tool for Swift developers who need to work with Excel files. Being written in Swift, the library seamlessly integrates with your existing Swift codebase. This means you can leverage the full power of the Swift programming language while working with Excel files. Whether you're building a data analysis tool, a reporting feature, or simply need to interact with Excel files in your application, it simplifies the process and provides a robust set of features to handle your Excel-related tasks. With its ease of use, cross-platform support, and strong integration with Swift, it's a valuable addition to any Swift developer's toolbox.

Previous Next

SwiftXLSX के साथ शुरूआत

The recommend way to install SwiftXLSX is using CocoaPods. Please use the following command for a smooth installation.

SwiftXLSX स्थापित करें via CocoaPods

 pod "SwiftXLSX"

pod install

You can download it directly from GitHub.

स्विफ्ट एपीआई के माध्यम से एक्सेल फ़ाइलें पढ़ना और लिखना

The open source SwiftXLSX library allows software developers to create a new file from the scratch with just a couple of lines of Swift code. Software developers can load and read data from existing Excel files with ease. There are several other important features part of the library, such as importing Excel files, extracting data from existing files, making modifications, and saving the results back into Excel format with ease. The following example shows how software developers can read data from an Excel file using SwiftXLSX library.

Swift API की मदद से Excel फ़ाइल से डेटा कैसे पढ़ें?

import SwiftXLSX
import SwiftXLSX

do {
    let filePath = "path/to/your/excel-file.xlsx"
    let file = try XLSXFile(filepath: filePath)
    for path in try file.parseWorksheetPaths() {
        let ws = try file.parseWorksheet(at: path)
        for row in ws.data?.dropFirst() ?? [] {
            for cell in row {
                print(cell)
            }
        }
    }
} catch {
    print("Error reading Excel file: \(error)")
}

स्विफ्ट के माध्यम से फ़ाइल पर स्टाइल और फ़ॉर्मेट लागू करना

Applying styling and formatting to Excel files using the SwiftXLSX library allows you to customize the appearance of your Excel sheets, making them more visually appealing and informative. Software developers can format cells, change font settings, apply borders, and set background colors to highlight specific data. Here's how you can apply styling and formatting to an Excel file inside Swift Applications.

Swift की मदद से Excel वर्कशीट पर स्टाइलिंग और फ़ॉर्मेटिंग कैसे लागू करें?

import SwiftXLSX

// Create a new Excel file
let file = XLSXFile()

do {
    let ws = try file.parseWorksheet(at: 0) // Replace 0 with the index of the worksheet you want to format
} catch {
    print("Error parsing worksheet: \(error)")
}

// Font Settings

let font = Font(family: .roman, bold: true, size: 12)
ws.cell(at: CellReference("A1")).style.font = font

// Background Color:

ws.cell(at: CellReference("B2")).style.fill = Fill(patternType: .solid, fgColor: Color(.yellow))

// Borders:
let border = Border(style: .thin, color: Color(.black))
ws.cell(at: CellReference("C3")).style.borders = Borders(left: border, right: border, top: border, bottom: border)

// Number Format:

ws.cell(at: CellReference("D4")).style.numberFormat = .number

//Save the File:

let savePath = "path/to/save/your/excel-file.xlsx"
do {
    try file.save(to: savePath)
} catch {
    print("Error saving Excel file: \(error)")
}

स्विफ्ट एपीआई के माध्यम से डेटा निकालना और संशोधित करना

The open source SwiftXLSX library allows software developers to manipulate data inside Excel Spreadsheet using Swift API. The library allows to perform various data manipulation operations, such as sorting, filtering, and calculating values within Excel sheets. This makes it an ideal tool for tasks like data analysis and reporting. Moreover, software developers can easily extract data from specific cells, rows, or columns within an Excel sheet using Swift API. This is incredibly useful when dealing with large datasets and only needing specific information.

 हिन्दी