We need support for relatives in links (attached document, fields, etc.) but Aspose does not currently seem to support this. When passing in a relative link it converts this to an absolute link.
This is a must have requirement for us and is supported in a native C++ solution today.
Can you please let us know whether it is possible to have relative links today in Aspose.Words and if not when you can support this?
Hi Thomas,
Thanks for your inquiry. Unfortunately, your question isn't clear enough therefore we request you to please elaborate your inquiry further by providing complete details of your usecase. This will help us to understand your scenario, and we will be in a better position to address your concerns accordingly.
Moreover, please attach the following resources here for testing:
- Your input document.
- Please attach the output document file that shows the undesired behavior.
- Please attach the expected output document file that shows the desired behavior.
- Please create a standalone console 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'll start investigation into your issue and provide you more information. Thanks for your cooperation.
PS: To attach these resources, please zip them and Click 'Reply' button that will bring you to the 'reply page' and there at the bottom you can include any attachments with that post by clicking the 'Add/Update' button.
Take any file and write code like this:
doc.AttachedTemplate = “./mytemplate.dot”;
Console.WriteLine(doc.AttachedTemplate);
//output is full path of the template instead of relative path.
I need it to be the relative path.
I need it to be the relative path.
Hi Thomas,
Thanks for your inquiry. Please note that Aspose.Words mimics the same behavior as MS Word does. If you set the relative template path using MS Word, you will get the same behavior. Please check following link for your kind reference.
Moreover, MS Word uses "C:\Users\USER\AppData\Roaming\Microsoft\Templates\" path as default template path and Normal.dot is default template document.