User Guide
Comprehensive guide to using the BoxLang Spreadsheet Module with the Fluent API
🎯 Core Concepts
The SpreadsheetFile Object
// Create new spreadsheet object with a file name
// Or load the file if it exists
sheet = Spreadsheet( "myfile.xlsx" )
// Same as
sheet = Spreadsheet().setPath( "myfile.xlsx" )
// Load existing spreadsheet
sheet = Spreadsheet( "existing.xlsx" )
// Create in-memory spreadsheet
sheet = Spreadsheet();Method Chaining
Working with Sheets
📝 Creating Spreadsheets
Creating a New File
Setting Cell Values
Adding Rows
Adding Columns
📖 Reading Spreadsheets
Loading Files
Reading Cell Values
Reading Rows and Columns
Converting to Data Structures
Streaming Large Files
🎨 Formatting
Cell Formatting
Row and Column Formatting
Range Formatting
Column Widths
🔢 Working with Formulas
Adding Formulas
Working with Formula Results
Advanced Formulas
📊 Multiple Sheets
Creating and Managing Sheets
Working Across Sheets
🔀 Advanced Operations
Merging Cells
Adding Comments
Hiding Rows and Columns
Freeze Panes
Data Validation
💾 Saving and Exporting
Save Methods
Export Formats
🔧 Utility Operations
Sheet Information
Clearing Content
Deleting Rows and Columns
🎯 Best Practices
1. Use Method Chaining
2. Format After Adding Data
3. Use Auto-sizing Wisely
4. Handle Errors Gracefully
5. Close Large Files
🔍 Common Patterns
Pattern: Database Export with Formatting
Pattern: Template-Based Reporting
Pattern: Multi-Sheet Workbook
📚 Next Steps
FormattingFormulasData ExportAdvanced FeaturesExamplesComplete API Reference
Fluent APILast updated
Was this helpful?
