Quick Start

Get started with BoxLang Spreadsheet Module in 5 minutes

Get up and running with the BoxLang Spreadsheet Module in just a few minutes!


πŸ“¦ Installation

Install the module using CommandBox:

box install bx-spreadsheet@ortus

✨ Your First Spreadsheet

Let's create a simple employee spreadsheet using the Fluent API:

Spreadsheet( "employees.xlsx" )
    .setRowData( 1, [ "Name", "Department", "Salary" ] )
    .addRow( [ "John Doe", "Engineering", 95000 ] )
    .addRow( [ "Jane Smith", "Marketing", 85000 ] )
    .addRow( [ "Bob Johnson", "Sales", 75000 ] )
    .formatRow( 1, { bold: true, fgcolor: "blue", fontColor: "white" ] )
    .autoSizeColumns()
    .save();

That's it! You've just created an Excel file with formatted headers and employee data.


πŸ“– Reading Spreadsheets

Load and read data from an existing spreadsheet:


πŸ’Ύ Export to Different Formats


🎨 Basic Formatting

Add visual styling to your spreadsheets:


πŸ”’ Working with Formulas

Add Excel formulas to calculate values:


πŸ“Š Multiple Sheets

Work with multiple worksheets:


πŸ”„ Modify Existing Spreadsheets

Load, modify, and save:


🎯 Common Patterns

Pattern 1: Import CSV to Excel

Pattern 2: Database Export

Pattern 3: Template-Based Reports


πŸŽ“ Next Steps

Now that you've created your first spreadsheets, explore more advanced features:

User GuideFormattingFormulasExamples

Complete API Reference

For detailed method documentation:

Fluent API

πŸ’‘ Tips

  • Use Fluent API - The chainable interface is the recommended approach

  • Auto-size columns - Call .autoSizeColumns() for better-looking spreadsheets

  • Format headers - Make headers stand out with bold text and background colors

  • Check file paths - Ensure output directories exist before saving

  • Test formulas - Call .recalculateAllFormulas() to ensure calculations are current


πŸ€” Need Help?

Last updated

Was this helpful?