Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update fields dialog in TOC example #323

Open
mchusovlianov opened this issue Sep 10, 2019 · 5 comments
Open

Update fields dialog in TOC example #323

mchusovlianov opened this issue Sep 10, 2019 · 5 comments
Labels

Comments

@mchusovlianov
Copy link

I tried to use your example for a TOC and I receive this dialog every time when I open a file.
image

I use this example - https://github.com/unidoc/unioffice/tree/master/_examples/document/toc . Is there a way how to avoid that?

gunnsth pushed a commit that referenced this issue Oct 1, 2019
* #315, #323, #329

* New testfile
@gunnsth
Copy link
Contributor

gunnsth commented Oct 2, 2019

This has been addressed in PR #330 and merged into master. Would appreciate if you can confirm that this fixes the issue.

@mchusovlianov
Copy link
Author

mchusovlianov commented Nov 12, 2019

@gunnsth hey! I've checked and it looks the issue is still there. That's also true for your example file - unioffice/_examples/document/toc/toc.docx

@gunnsth gunnsth added this to Document in Issue Overview Nov 18, 2019
@mchusovlianov
Copy link
Author

@gunnsth How things are going with this ticket?

@gunnsth
Copy link
Contributor

gunnsth commented Dec 2, 2019

@mchusovlianov The example
https://github.com/unidoc/unioffice/blob/master/_examples/document/toc/main.go
uses doc.Settings.SetUpdateFieldsOnOpen(true)
to force Word to recreate the TOC automatically.

There is no way to have Word create the TOC without asking the user, see also:
https://stackoverflow.com/questions/42020348/poi-table-of-contents

The alternative is to generate the TOC in unioffice. That would be a new feature, especially if it was supposed to work like a regular TOC (i.e. able to update like in a normal TOC in Word), which would require some research (just like any new features).

@gunnsth gunnsth added feature New feature and removed bug labels Dec 2, 2019
@z1303756147
Copy link

@gunnsth hi! have you solved the issue now? @mchusovlianov

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

3 participants