docx icon indicating copy to clipboard operation
docx copied to clipboard

28-table-of-contents.ts Example not work

Open boomsi opened this issue 4 years ago • 8 comments

28-table-of-contents.ts not work. content is profect but table of content is empty.

[email protected]

boomsi avatar Jan 12 '21 07:01 boomsi

https://github.com/dolanmiu/docx/blob/master/demo/28-table-of-contents.ts

boomsi avatar Jan 12 '21 07:01 boomsi

I meet the same problem. It seems that there is something wrong with the generated TOC block. No valid content. TOC

byte16 avatar Jan 18 '21 03:01 byte16

anyone solved this problem?

clopend avatar Sep 01 '21 11:09 clopend

@byte16 @boomsi @clopend I have the same problem. Did anyone find solution?

caotrongtin99 avatar Oct 12 '21 09:10 caotrongtin99

@byte16 @boomsi @clopend I have the same problem. Did anyone find solution?

No, but I find another way to generate documents. https://docxtemplater.com/

clopend avatar Oct 12 '21 09:10 clopend

oh,I know why table of contents not work, I find that isn't work in WPS but it can work in Office Word

hahaXiaoxin avatar Nov 24 '23 01:11 hahaXiaoxin

用WPS无效,但使用office word是可以的

hahaXiaoxin avatar Nov 24 '23 01:11 hahaXiaoxin