08-03-2022
05:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
08-03-2022
05:23 AM
I found here the issue:
The command :
arquivo = oDoc.DisplayName
Is afected with the windows configuration to show or not the extension.
I have changed the code to:
arquivo = System.IO.Path.GetFileName(oDoc.FullDocumentName)
and it works now!