fix(export): use page sql for current-page xlsx export

This commit is contained in:
lxk955 authored and GitHub committed 2026-10-03 00:21:12 +08:00
1 parent 7e732a985a
commit 06918c06c8
16 files changed
+310 -43

No files matched your search

@@ -115,6 +115,7 @@ fn run() -> Result<(), String> {
column_comments: Vec::new(),
rows,
numeric_column_right_align: false,
auto_filter: None,
})?;
let xlsx_ms = elapsed_ms(xlsx_started);
@@ -102,6 +102,7 @@ fn write_xlsx(path: &Path, row_count: usize, column_count: usize) -> Result<(),
column_comments: vec![],
rows: (0..row_count).map(|row_index| row(row_index, column_count)).collect(),
numeric_column_right_align: false,
auto_filter: None,
})?;
fs::write(path, workbook).map_err(|error| error.to_string())
}
@@ -271,6 +271,7 @@ fn write_xlsx(path: &Path, row_count: usize, column_count: usize, text_bytes: us
column_comments: Vec::new(),
rows: (0..row_count).map(|row_index| row(row_index, column_count, text_bytes)).collect(),
numeric_column_right_align: false,
auto_filter: None,
})?;
fs::write(path, workbook).map_err(|error| error.to_string())
}