I have an usecase where I have to take screenshot of webpage and paste/insert to an excel file.
I was able to take screen shot with ‘Take screenshot’ activity and attach the screenshot to excel with simple VBA code. However, when i share the file to another person or if the attached screenshot gets deleted from the source folder where we save the screenshot. The screenshot get disappears fromt the excel file and a message is display which say
‘The image cannot be displayed. The file may have been moved, renamed or deleted. Verify that the link points to the correct file and location.’
Can anyone help me with issue?
I want the image to stay.
It seems that you have trouble getting an answer to your question in the first 24 hours.
Let us give you a few hints and helpful links.
First, make sure you browsed through our Forum FAQ Beginner’s Guide. It will teach you what should be included in your topic.
You can check out some of our resources directly, see below:
Always search first. It is the best way to quickly find your answer. Check out the icon for that.
Clicking the options button will let you set more specific topic search filters, i.e. only the ones with a solution.
Topic that contains most common solutions with example project files can be found here.
Read our official documentation where you can find a lot of information and instructions about each of our products:
Hopefully this will let you easily find the solution/information you need. Once you have it, we would be happy if you could share your findings here and mark it as a solution. This will help other users find it in the future.
Thank you for helping us build our UiPath Community!
The error message you are seeing occurs because Excel does not embed images directly, rather it links to the location of the image on your system. This means if you move or delete the file, or if you share the Excel document with someone else and the image doesn’t come along with it, Excel cannot find the image and thus cannot display it.
You could solve this issue by:
Instead of attaching the screenshot, you could insert the image into the cell; Excel should then embed the image fully into the file and you should not have issues sharing it. Use “Insert Picture” option in Excel for this. Check what is the VBA code for that.
Alternatively, you can try using a custom activity or a custom code to transform the image to a base64 text and use that text in the excel. Then the next user can get that text and reconstruct the image back.