Merge pull request #631 from meld-cp/master

add docs for Freeze Panes
This commit is contained in:
meld-cp 2024-07-13 12:28:15 +12:00 committed by GitHub
commit c0c8621e94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 16 additions and 0 deletions

View File

@ -658,6 +658,22 @@ MiniExcel.SaveAs(@"C:\temp\Book1.xlsx", dt, configuration: configuration);
Works for null and DBNull values.
#### 14. Freeze Panes
```csharp
/* ... */
OpenXmlConfiguration configuration = new OpenXmlConfiguration()
{
FreezeRowCount = 1, // default is 1
FreezeColumnCount = 2 // default is 0
};
MiniExcel.SaveAs(@"C:\temp\Book1.xlsx", dt, configuration: configuration);
```
![image](docs/images/freeze-pane-1.png)
### Fill Data To Excel Template <a name="getstart3"></a>
- The declaration is similar to Vue template `{{variable name}}`, or the collection rendering `{{collection name.field name}}`

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB