GridJs的设置
Contents
[
Hide
]
我们可以通过设置GridWorkbookSettings来指定一些设置:
例如,以下代码将ReCalculateOnOpen设置为false,在打开文件时停止计算:
GridJsWorkbook gw = new GridJsWorkbook();
GridWorkbookSettings gws = new GridWorkbookSettings();
//do not re-calculate all formulas on opening the file.
gws.setReCalculateOnOpen(false);
gw.setSettings(gws);
gw.importExcelFile(@"c:\test.xlsx");
以下代码为文件设置作者:
GridJsWorkbook gw = new GridJsWorkbook();
GridWorkbookSettings gws = new GridWorkbookSettings();
//set author.
gws.setAuthor("peter");
gw.setSettings(gws);
gw.importExcelFile(@"c:\test.xlsx");
您可以在此类中查看更多设置。