Open pcenshao opened 1 day ago
@pcenshao Thank you for contacting us. umya-spreadsheet does not support pivot tables. It does support tables, which are a similar function.
Pivot table support may be a bit further down the road. I will try to support it eventually.
Firstly, this is a good library,think you author. Before this ,I use
calamine
for reading excel,and userust_xlsxwriter
for writing excel.But,when I want to modify a excel file,this method is hard to satisfy this situation.umya-spreadsheet
can very good to do this work.Important Point Below
When read a excel sheet with pivot table,it works good,also can read formula cells.But after write to the same excel file,open excel with Microsoft Office app,the pivot table disappeared.
the code:
` fn run_ln_code(self: &Self) -> Result<(), String> { let path = std::path::Path::new("aaa.xlsx"); let mut book = umya_spreadsheet::reader::xlsx::read(path).unwrap(); let sheet = book.get_sheet_by_name_mut("Sheet1").ok_or("找不到Sheet1".to_string())?;
`
thinks.