Filtering the kind of data while loading the workbook from template file
Contents
[
Hide
]
Sometimes, you want to specify which kind of data should be loaded when building the workbook from the template file. Filtering loaded data can improve the performance for your special purpose, especially when using LightCells APIs. Please use the LoadOptions.LoadFilter property for this purpose.
The following sample code loads only shape objects while loading the workbook from the template file which you can download from the given link. The following screenshot shows the template file contents and also explains that the data in Red color and Yellow background will not be loaded because LoadOptions.LoadFilter property has been set to LoadDataFilterOptions.Shape
The following screenshot shows the output PDF which you can download from the given link. Here you can see, the data in Red color and Yellow background is not present but all shapes are there.