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

The plugin cannot find relative files when used on sharepoint folder #15

Open
5iBri opened this issue Jun 6, 2023 · 0 comments
Open

Comments

@5iBri
Copy link

5iBri commented Jun 6, 2023

When the word document is in a sharepoint folder, the following plantuml directive doesn't work :
@startuml
!include .\resources\open_session.md
@enduml

It seems to be a problem with the relative path. When I change the relative path by an absolute path, it works.

5iBri pushed a commit to 5iBri/word-template that referenced this issue Jun 6, 2023
…d on sharepoint folder

The problem was located when the plugin uses the property ActiveDocument.Path. On a sharepoint folder, this property contains the sharepoint URL, and not the local path.
Fix:
- Add A module called LibFileTools (based on https://github.com/cristianbuse/VBA-FileTools)
- Replace all the "ActiveDocument.Path" by a call to the API "GetLocalPath()"
5iBri pushed a commit to 5iBri/word-template that referenced this issue Jun 7, 2023
…d on sharepoint folder

The problem was located when the plugin uses the property ActiveDocument.Path. On a sharepoint folder, this property contains the sharepoint URL, and not the local path.
Fix:
- Add A module called LibFileTools (based on https://github.com/cristianbuse/VBA-FileTools)
- Replace all the "ActiveDocument.Path" by a call to the API "GetLocalPath()"
arnaudroques added a commit that referenced this issue Jun 7, 2023
Fix issue #15: The plugin cannot find relative files when used on sharepoint folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant