Skip to content

Commit 9aad34e

Browse files
authored
docs: clarify that the exporter has to be created before attaching grid
Closes #8
1 parent 68800ab commit 9aad34e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ Grid Exporter Addon is written by Flowing Code S.A.
8080

8181
# Developer Guide
8282

83-
After creating a grid, the method createFor can be used to create the exporter that then can be configured. It is important that the grid should always be completely configured (headers, footers, etc.), before creating the exporter, because if not, it will not work properly.
83+
After creating a grid, the method createFor can be used to create the exporter that then can be configured. It is important that the grid should always be completely configured (headers, footers, etc.), before creating the exporter, because if not, it will not work properly. Another important consideration is to create the exporter before attaching the grid, creating the grid exporter after the grid is attached will raise an exception (see [this issue](https://github.com/FlowingCode/GridExporterAddon/issues/8))
8484

8585
GridExporter<Person> exporter = GridExporter.createFor(grid, "/custom-template.xlsx", "/custom-template.docx");
8686
HashMap<String,String> placeholders = new HashMap<>();

0 commit comments

Comments
 (0)