diff --git a/README.md b/README.md index 28722f44..0bdfedff 100644 --- a/README.md +++ b/README.md @@ -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 - The declaration is similar to Vue template `{{variable name}}`, or the collection rendering `{{collection name.field name}}` diff --git a/docs/images/freeze-pane-1.png b/docs/images/freeze-pane-1.png new file mode 100644 index 00000000..bbc70937 Binary files /dev/null and b/docs/images/freeze-pane-1.png differ