Hi Shweta,
This will require a code stage and you can use this object for any other purpose too that requires saving an image from a Clipboard to an Image file.
- Create a new action in the 'Utility Image Manipulation' VBO. (Rick click on any of the tabs on the top and click 'New')
You can even make a duplicate copy of any of the existing actions in this VBO and then work on it. That will be easier since you will have a ready made Object diagram that looks similar like the one shown below.
- The Object diagram looks as follows:
View attachment 1539157565815.png
- Start stage properties
View attachment 1539157597967.png
- End stage properties
View attachment 1539157636013.png
- Code stage Input parameters
View attachment 1539157661109.png
- Code stage Output parameters
View attachment 1539157682714.png
- Code stage
View attachment 1539157849364.png
Below is the code to be pasted in the Code stage
Code:
Dim im As Image
Try
im = Clipboard.GetImage
FullSavedScreenshotPath = OutputFolderPath & Format(now, "dd-MMM-yy hh-mm-ss") & ".jpeg"
im.Save(FullSavedScreenshotPath)
Success = True
Catch e As Exception
Success = False
Message = e.Message
Finally
im = nothing
End Try
- Save and Publish this action
- Go to the Process and have a process diagram similar to the below
View attachment 1539157984288.png
- In the Select simply give the Cell Reference of the data that needs to be copied eg; "A1:Z20"
- Copy is to copy the above selected Range to the Clipboard
- The new action that you just created under Image Manipulation VBO will now be visible in the dropdown.
Set the path where the image file needs to be saved.
View attachment 1539158025959.png
- Setting the Output parameter as below will give a data item containing the full path and file name of the Image in case you need it anywhere in the diagram
View attachment 1539158083005.png
- After running the Process, an Image file will be stored in the path that was given in the above parameter.
It is saved by today's date and time. (Ignore the file name shown in the screenshot since my system has incorrect date settings)
- This is how the image looks with great clarity when opened in an image editor
If you would like to save the image as png then in the above code stage replace .jpeg with .png.
View attachment 1539158378019.png
Let me know if you are facing any Reference issues or anything.