Can anyone tell me How can i used Replace Picture activity for multiple picture
Res is the load img variable
Can anyone tell me How can i used Replace Picture activity for multiple picture
Res is the load img variable
You have to provide the Image file path in Replace with Picture field.
In Res Variable it contains the path then give a try like this Res.toString.
Hope it helps!!
I have image with name IDNo & in vIDNo variable store IDNo which is in excel
& Path contains folder where img save with ID No in if condition i check IDNo is equals in Path(img Name) then i want to replace img by path then how i do it beacuse it gives error
In this you have to use contains function not equals.
Because the vIDNo contains in the path, both are not equal.
In condition give like this Path.Contains(vIDNo)
Hope you understand!!
Yeah no error will occur If condition will not satisfy it will not go to then block.
For checking give a breakpoint to If condition and debug the code.
Change the condition in If condition like this and try Condition → Path.Contains(vIDNo)
Hope you understand!!
if condition returns false
is Path contains right path?
The path is wrong.
If you want to check the files in the folder which contains the vIDNo?
If yes, then take a for each file in folder activity and give the folder path. In filter by give like this “*.jpg”.
Inside For each file in folder activity insert the If condition then check the condition the file name contains vIDNo
Check the below workflow for better understanding.
Hope you understand!!
You have given some wrong in the Find Pictures field.
Click on + and see the options and provide the proper option for it. @Yogita_Gaikwad1
It throwing the error was it was not finding any picture like ‘IDCard’
Please specify the proper value in the Find Pictures field.
see i have given Alt Text as IDCard
& i use this IDCard in Replace picture & also in word application scope select image word file
You have given the correct Alt Text. Is it not working for you @Yogita_Gaikwad1
how should i give it
In the below reply there is a screenshot in that there is a Generate alt text for image button.
Hit on that button then it will generate a text. Copy that text and paste it in the Replace Picture activity enclosed with double quotes.
Hope you understand!! @Yogita_Gaikwad1
again shows same error
It was throwing there is no picture found with this Alt Text @Yogita_Gaikwad1
But you are doing process is perfect.
Could you try with the another picture…
i want to replace in above img icon now i am tried outside square box it is working but inside square box it shows error
Instead of using an icon use any image. because icon is in “.svg” formate. try using any “.jpg” or “.png” formate. I tried it and its working for me.
Path is a bad name for a variable. Path is a class (System.IO.Path). You should use variable naming conventions that ensure your variable names aren’t the same as classes, methods, datatypes, etc