pawan
April 17, 2019, 3:07pm
1
I am trying to print all PDF files from a particular folder.
Steps:
Read PDF files from folder : working well
Using Start Process : Adobe does not open the file and gives an error. The file name is without any spaces.
Attached is the xaml built so far.
Main.xaml (6.7 KB)
pawan
April 17, 2019, 3:30pm
2
Attached is the Adobe error and output from UiPath showing the file name being read.
HI @pawan
Did you cross check the actual file path & the file name to make sure whether your workflow is looking for the same?
pawan
April 17, 2019, 5:09pm
4
Yes verified it is the same.
lakshman
(Ganta lakshman)
April 17, 2019, 5:14pm
5
@pawan
Are you getting any error if you open it manually. Try it once and let me know.
pawan
April 17, 2019, 5:19pm
6
No error when I open the file manually. I tried with multiple files it gives me the same error.
I have finally found the proper solution for getting ‘Start Process’ Activity working. Please see screenshot below:
As you can see I have mentioned directly the .exe name and .pdf file name directly.
WhenCutEsh
(Venkatesh Nallana)
August 16, 2019, 3:58pm
10
try using open application pass the pdf name in the argument property.
I have faced the same issue when opening the pdf file. You can open the pdf file using below steps
Create a variable X with datatype as System.process
Add Assign Activity and assign X to Process.Start(“Your File Path”)
Hope this works !!
Thanks
Karun
(Karun Kumar Nalam)
February 25, 2021, 8:47am
12
Hi,
I am facing this issue, Is there any solution for this?
Please refer : Opening PDF from a folder fails - #4 by ClaytonM
If item is the file in a ForEach that you want to pass in the argument field, then you can do it like this:
""""+item.ToString+""""
The 4 quotes on the ends should embed a quotation mark on both sides of the file. You can also verify this with a message box or write line and check if the filename is correct.
Regards.