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 FeaturesExamples
Complete API Reference
Fluent APILast updated
Was this helpful?
