Usage of Save Image in VB Code

Hi all,

i need to know how can i use save image via v.b in invoke code?

  • Cannot use activity(obligation) :frowning:
  • I’m taking screenshot via code and assigning a image variable

Thanks.

Hi @Kuki_Force ,

Based on your message i assume that you are using take screenshot activity in UiPath to take the screenshot. please confirm this step.

i think we no need to use any vb.net code to save image in the local disk. we have the following activity Save Image used to save the extracted screenshot into the desired path. the input parameter would be screenshot output variable from the take screenshot activity and output would be the desired file path where do you want to store the image file. please find the attached link for your reference.

(https://docs.uipath.com/activities/docs/save-image)

Cannot use activity(obligation) - just wanted to understand are you using UiPath to automate this task.

Regards,
Kirankumar.

Hi,

Hope the following helps you.

image

Dim img As UiPath.Core.Image
img = UiPath.Core.Image.CreateFromScreen(New Rectangle(0,0,1024,768),Nothing,Nothing,Nothing)
img.SaveFile("c:\temp\test.png")

Regards,

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.