Hi,
Getting empty result is not part of exception(unless its null reference) hence Try/Catches won’t be helpful here.
You can simply use in if condition ( result=null/empty) then proceed according.
Hey @ddpadil,
Even i tried that too. We cant use result=null//empty , it was showing some error, so i tried with IsDBnull it works. actual problem i want to check whether my file is protected with password or not ?
Oh got it.
First you need to download Windows.Data.Pdf dll and import to studio.
Windows.Data.Pdf class support following methods:
Then you can check using bool IsPasswordValid or CheckPdfProtection or simply using IsOpenedWithFullPermissions
For the reference:
importing to studio in the sence , have downloaded and copied that dll in c://users/…uipath/ but couldnt see windows.data.pdf to add to studio. or i need to follow create custom activity ?
Yep.