Spire.Agent.Office 11.6.2

dotnet add package Spire.Agent.Office --version 11.6.2
                    
NuGet\Install-Package Spire.Agent.Office -Version 11.6.2
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Spire.Agent.Office" Version="11.6.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Spire.Agent.Office" Version="11.6.2" />
                    
Directory.Packages.props
<PackageReference Include="Spire.Agent.Office" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Spire.Agent.Office --version 11.6.2
                    
#r "nuget: Spire.Agent.Office, 11.6.2"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Spire.Agent.Office@11.6.2
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Spire.Agent.Office&version=11.6.2
                    
Install as a Cake Addin
#tool nuget:?package=Spire.Agent.Office&version=11.6.2
                    
Install as a Cake Tool

Embed Office AI Agents Directly Into Your Software

Product Page | Tutorials | Demo | Examples | Forum | Blog | Customized Demo | Temporary License

Transforms natural language into fixed document processing workflows. Our enterprise-level component libraries enable smooth API integration and support Word, Excel, presentations, PDF and more file formats.

About Spire.Agent.Office

Spire.Agent.Office empowers users to create, edit, analyze, and automate spreadsheets, Word documents, presentation slides, and PDFs via natural language. Build your AI Agent with Spire.Agent.Office today.

Why Enterprises Choose Spire.Agent.Office

  • AI-Native Experience Interact with Excel via natural language, eliminating complicated development workflows.

  • Enterprise Reliability Built on mature, verified spreadsheet processing technology optimized for production use cases.

  • Easy Integration Embed Excel AI functions into your current applications and services with ease.

  • Flexible AI Model Support Fully compatible with state-of-the-art AI models and enterprise AI infrastructures.

  • Scalable Processing Efficiently process single requests and large-volume automated workloads alike.

  • Accelerated Productivity Slash document processing time by 60% and maintain over 95% accuracy in code generation.

Supported Platforms & File Formats

Supported Development Platforms

  • .NET 10.0
  • Cross-platform: Windows, macOS, Linux, Docker container deployment

Supported Document Formats

  • Excel: .xls, .xlsx, .xlsm, .xlsb
  • Word: .doc, .docx, .docm
  • Presentation: .ppt, .pptx, .pptm
  • PDF: Standard PDF, text-based PDF (encrypted PDF with password supported)
Parameter Description
SpireToken Authorization key for activating AI features, obtained from official website

AI Agent Example for Excel Processing

//XLS
static AIResult ExecuteDemoXls(string instruction, string inputPath, string savePath, string key, string[] attachmentPaths)
{
    AIOptions options = new AIOptions();
    options.SpireToken = key;

    using (Workbook workbook = new Workbook())
    {
        // Load the document if the input path exists and the file is accessible
        if (!string.IsNullOrEmpty(inputPath) && File.Exists(inputPath))
        {
            workbook.LoadFromFile(inputPath);
        }
        // Otherwise, use an empty Workbook (adjust behavior as needed for your business logic)

        AIDocumentProcessor processor = workbook.AI(options);
        return processor.ExecuteInstruction(workbook, instruction, savePath, attachmentPaths);
    }
}

AI Agent Example for Word Processing

//doc
static AIResult ExecuteDemoWord(string instruction, string inputPath, string savePath, string key, string[] attachmentPaths)
{
    AIOptions options = new AIOptions();
    options.SpireToken = key;

    using (Document doc = new Document())
    {
        // Load the document if the input path exists and the file is accessible
        if (!string.IsNullOrEmpty(inputPath) && File.Exists(inputPath))
        {
            doc.LoadFromFile(inputPath);
        }
        // Otherwise, use an empty Document (adjust behavior as needed for your business logic)

        AIDocumentProcessor processor = doc.AI(options);
        return processor.ExecuteInstruction(doc, instruction, savePath, attachmentPaths);
    }
}

AI Agent Example for PDF Processing

//PDF
static AIResult ExecuteDemoPDF(string instruction, string inputPath, string savePath, string key, string[] attachmentPaths)
{
    AIOptions options = new AIOptions();
    options.SpireToken = key;

    using (PdfDocument pdf = new PdfDocument())
    {
        // Load the document if the input path exists and the file is accessible
        if (!string.IsNullOrEmpty(inputPath) && File.Exists(inputPath))
        {
            pdf.LoadFromFile(inputPath);
        }
        // Otherwise, use an empty PdfDocument (adjust behavior as needed for your business logic)

        AIDocumentProcessor processor = pdf.AI(options);
        return processor.ExecuteInstruction(pdf, instruction, savePath, attachmentPaths);
    }
}

AI Agent Example for Presentation slides Processing

//PPT generation 
static PPTGenerationResult GeneratPPT(string input, string instruction, string savePath, string key)
{
    AIOptions options = new AIOptions();
    options.SpireToken = key;
    using (Presentation ppt = new Presentation())
    {
        AIDocumentProcessor processor = ppt.AI(options);
        return processor.GeneratePresentation(input, instruction, savePath);
    }
}

//Based on existing PPT processing
static AIResult ExecuteDemoPPT(string inputPath, string instruction, string savePath, string key, string[] attachmentPaths)
{
    AIOptions options = new AIOptions();
    options.SpireToken = key;

    using (Presentation ppt = new Presentation())
    {
        // Load the document if the input path exists and the file is accessible
        if (!string.IsNullOrEmpty(inputPath) && File.Exists(inputPath))
        {
            ppt.LoadFromFile(inputPath);
        }
        // Otherwise, use an empty Presentation (adjust behavior as needed for your business logic)

        AIDocumentProcessor processor = ppt.AI(options);
        return processor.ExecuteInstruction(ppt, instruction, savePath, attachmentPaths);
    }
}

Frequenly Asked Questions/ FAQ

  • Token Invalid Error

    Check whether the SpireToken is copied completely without extra spaces.

    Temporary token expires after a certain period, re-apply a new license.

  • File Loading Failed

    Confirm the file path is correct and the file is not occupied by other software.

    Encrypted files need to input password before loading.

  • AI Task Timeout

    Large-size documents or complex logic will take longer; split batch tasks to improve stability.

  • Low Code Generation Accuracy

    Optimize natural language instructions with clear, detailed requirements.

    Attach reference documents to provide more data context for AI.

Product Page | Tutorials | Demo | Examples | Forum | Blog | Customized Demo | Temporary License

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
11.6.2 39 7/2/2026
11.6.1 56 7/1/2026