https://community.softwaregrp.com/t5/Unified-Functional-Testing-User/UFT-Support-Tip-How-to-use-Net-custom-DLL-from-UFT-GUI-Test/td-p/574312

filepath = "C:\temp\desktop.bmp" desktop.CaptureBitmap filepath,true
Set ChangeImageFormat = DOTNetFactory.CreateInstance("MyNamespace.ChangeImageFormat", "C:\\Temp\\ChangeImageFormat.dll") ChangeImageFormat.ConvertBMPtoJPEG filepath, true
 
Starting today, Saket is kicking off a series of posts on the DotNetFactory object in QTP.
https://www.learnqtp.com/dotnetfactory-qtp-part1-basics/
Example 1
  1. Dim SystemDate , oDate
  2. Set SystemDate = Dotnetfactory.CreateInstance("System.DateTime")
  3. Set oDate = SystemDate.Parse("Fri, 9 Oct 2009")
  4.  
  5. FormattedDate = oDate.Day & "/" & oDate.Month & "/" & oDate.Year
  6.  
  7. msgbox FormattedDate
  8.  
  9. Set SystemDate = Nothing
  10. Set oDate = Nothing

I BUILT MY SITE FOR FREE USING