Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions content/en-US/guides/sheets/features/import-export.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ import { downloadFile } from '@univerjs-pro/exchange-client';
const fWorkbook = univerAPI.getActiveWorkbook();
const unitId = fWorkbook.getId();
const file = await univerAPI.exportXLSXByUnitIdAsync(unitId);
// or with SSC switch, trigger server-side formula calculation
// const file = await univerAPI.exportXLSXByUnitIdAsync(unitId, true);
// or with server-side calculation enabled
// const file = await univerAPI.exportXLSXByUnitIdAsync(unitId, { enableServerCalculation: true });

// Download the file
downloadFile(file, 'univer', 'xlsx');
Expand All @@ -260,8 +260,8 @@ import { downloadFile } from '@univerjs-pro/exchange-client';
const fWorkbook = univerAPI.getActiveWorkbook();
const snapshot = fWorkbook.save();
const file = await univerAPI.exportXLSXBySnapshotAsync(snapshot);
// or with SSC switch, trigger server-side formula calculation
// const file = await univerAPI.exportXLSXBySnapshotAsync(snapshot, true);
// or with server-side calculation enabled
// const file = await univerAPI.exportXLSXBySnapshotAsync(snapshot, { enableServerCalculation: true });

// Download the file
downloadFile(file, 'univer', 'xlsx');
Expand Down
8 changes: 4 additions & 4 deletions content/zh-CN/guides/sheets/features/import-export.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ import { downloadFile } from '@univerjs-pro/exchange-client';
const fWorkbook = univerAPI.getActiveWorkbook();
const unitId = fWorkbook.getId();
const file = await univerAPI.exportXLSXByUnitIdAsync(unitId);
// 或者打开 SSC,触发服务器端公式计算
// const file = await univerAPI.exportXLSXByUnitIdAsync(unitId, true);
// 或者触发服务端公式计算
// const file = await univerAPI.exportXLSXByUnitIdAsync(unitId, { enableServerCalculation: true });

// 下载文件
downloadFile(file, 'univer', 'xlsx');
Expand All @@ -260,8 +260,8 @@ import { downloadFile } from '@univerjs-pro/exchange-client';
const fWorkbook = univerAPI.getActiveWorkbook();
const snapshot = fWorkbook.save();
const file = await univerAPI.exportXLSXBySnapshotAsync(snapshot);
// 或者打开 SSC,触发服务器端公式计算
// const file = await univerAPI.exportXLSXBySnapshotAsync(snapshot, true);
// 或者触发服务器端公式计算
// const file = await univerAPI.exportXLSXBySnapshotAsync(snapshot, { enableServerCalculation: true });

// 下载文件
downloadFile(file, 'univer', 'xlsx');
Expand Down
Loading