-
-
Notifications
You must be signed in to change notification settings - Fork 41
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
Custom Template - Table of Content/Headding failed #12
Comments
I believe it's related to this: EvotecIT/PSWriteWord#16 I've reported this a while back in Xceed DLL. What you could try to do:
And let me know if it works. If it does then I can build workaround into PSWinDocumentation that does this for any custom templates. Thanks for reporting this. |
I tried it, but unfortunately the merge-command doesn't worked like expected. If i try the output is my template but the headding isn't working with the script. btw. |
I also tried to load my template, add something and save it again. |
What if you try to create an empty doc with PSWriteWord and add your stuff into it and load it? |
Same result. Already tested :) |
That’s weird because thats how I created my template. Care to send me your template? Publicly or privately via email? I’ll take a look |
If you want to build documentation on your own template you're free to do so, however, you should use Data\EmptyDocument.docx as your starting template. This is because of an issue with PSWriteWord (more specifically with DLL it uses) where Heading styles are not available when using the template created directly in Microsoft Word. The issue was reported PSWriteWord #16 but it's a long time till it will be fixed. Until then simply use Data\EmptyDocument.docx and then add your logos, text, whatever you feel like you need in a template. |
Thanks for investigating! |
2016+ - I use newest Office 365 edition. |
I tried to use a custom template for creating the report.
After a few tests the following happened
This are the situations which worked
If I use a own template, the headding didn't work. So there are no headding where the Table of Content could relate to.
I tested following situations, which doesn't worked:
I use Word 2016 for creating the template
The text was updated successfully, but these errors were encountered: