02-19-2019
11:07 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
02-19-2019
11:07 PM
It is a smart tweek but not quite right (see the figure below) . It led me to tweek as follows and it is fine.
Thanks again for your help.
Try Dim oParentocc As ComponentOccurrence oParentocc = oOcc.ParentOccurrence docFile = oParentocc.Definition.Document oParent = System.IO.Path.GetFileNameWithoutExtension(docFile.FullFileName) oParent = System.IO.Path.GetFileName(docFile.FullFileName) Catch oParent = System.IO.Path.GetFileNameWithoutExtension(oOcc.Parent.Document.DisplayName) oParent = System.IO.Path.GetFileName(oOcc.Parent.Document.DisplayName) End Try