You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README-V2.md
+30-1Lines changed: 30 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1685,6 +1685,35 @@ class Dto
1685
1685
}
1686
1686
```
1687
1687
1688
+
#### Q. How do I fill data horizontally (left-to-right) with templates?
1689
+
1690
+
A. MiniExcel template collections currently expand vertically (top-to-bottom). Horizontal (left-to-right) fill isn't supported yet (see https://github.com/mini-software/MiniExcel/issues/619).
1691
+
1692
+
If you just need the final layout, transpose your data into a matrix and export it with `printHeader: false`:
1693
+
1694
+
```csharp
1695
+
varemployees=new[]
1696
+
{
1697
+
new { Name="Name1", Department="Department1", City="City1", Country="Country1" },
1698
+
new { Name="Name2", Department="Department2", City="City2", Country="Country2" },
1699
+
new { Name="Name3", Department="Department3", City="City3", Country="Country3" },
If you need template styling, one workaround is to use scalar placeholders (e.g. `{{Name_1}}`, `{{Name_2}}` ...) and fill a dictionary (requires a fixed maximum number of columns).
1716
+
1688
1717
#### Q. How do I query multiple sheets of an Excel file?
1689
1718
1690
1719
A. You can retrieve the sheet names with the `GetSheetNames` method and then Query them using the `sheetName` parameter:
@@ -1824,4 +1853,4 @@ for automating the creation of synchronous functions based on asynchronous ones.
If you must use a template for styling, one option is to use scalar placeholders (e.g. `{{Name_1}}`, `{{Name_2}}` ...) and fill a dictionary (requires a fixed maximum number of columns).
1850
+
1824
1851
1825
1852
#### Q. Whether to use Count will load all data into the memory?
0 commit comments