Skip to content

V4.4.2

Compare
Choose a tag to compare
@zurmokeeper zurmokeeper released this 08 Jul 04:09
· 31 commits to master since this release
c1e348c

Change Log:

PS: Since V4.4.2 @zurmokeeper/exceljs new cell insertion internal hyperlink support Sheet2!A1:B1 and A1:B1 and other forms, the original only supports Sheet2!A1, use the following way::

const wb = new ExcelJS.Workbook();
const ws1 = wb.addWorksheet('Sheet1');
const ws2 = wb.addWorksheet('Sheet2');

'#' is required, @zurmokeeper/exceljs is to distinguish internal hyperlink by '#', the default will be considered non-internal hyperlink, older versions also need to manually add '#' , how not to add if
// internal hyperlink
ws1.getCell('A1').value = { text: 'Sheet2', hyperlink: '#Sheet2!A1' };

// internal hyperlink
ws1.getCell('A1').value = { text: 'Sheet2', hyperlink: '#Sheet2!A1:B1' };

// internal hyperlink
ws1.getCell('A1').value = { text: 'Sheet2', hyperlink: '#A1:B1' };