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 GuideFormattingFormulasExamplesComplete 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 spreadsheetsFormat 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?
π Complete User Guide
π Fluent API Reference
π‘ Real-World Examples
Last updated
Was this helpful?
