Hi I also have a question regarding “setAttachedTemplate()” in Aspose Java. We defined our own VBA template and use this method to attach it to a document generated by Aspose Java. it works perfect when the document byte stream sent back to user by web server and the Word application on client’s machine launched it with our template. But if the document is saved on client’s local machine then launch from there, out template won’t show up. Is there anything we can change so that our template can launch with the document from client’s local machine? Thanks.
Please make sure that the template you are using exists on the client machine and its path is also correct. You may clone the VBA from the template and add it into destination document. Please refer to the following article.
If you still face problem, please attach the following resources here for testing:
- Your input Word document.
- Please attach the output Word file that shows the undesired behavior.
- Please attach the expected output Word file that shows the desired behavior.
- Please create a sample Java application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.
As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.
PS: To attach these resources, please zip and upload them.