Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.

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!